C++ program to find area of square,rectangle,circle and triangle by using function overloading


Sample Input
Enter side of a square:2
Enter length and breadth of rectangle:3 6
Enter radius of circle:3
Enter base and height of triangle:4 4
Sample Output
Area of square is4
Area of rectangle is 18
Area of circle is 28.26
Area of triangle is 8

You may also like...