Showing posts with label function overloading. Show all posts
Showing posts with label function overloading. Show all posts

Monday, January 1, 2018

WAP in C++ using function overloading to calculate area of circle, square, rectangle, right triangle and triangle using heron’s formulae

Aim :  WAP in C++ using function overloading to calculate area of circle, square and rectangle.

CODE:

OUTPUT:


WAP in C++ using function overloading to calculate a^b

Aim : WAP using function overloading to calculate a^b when
A) a and b are integer 
B) a is real and b is integer 
C) a and b are real
D) a is integer and b is real

CODE:

OUTPUT: