design a class area with the following functions:
1. find area(int s) :- to print area of a square
2. find area(int l, int b) :- to print the area of a rectangle
3. find area(double r) :- to print the area of a circle
Answers
Answered by
1
1. Area of a square is side*side
2. Area of rectangle is Length*Breadth
3. Area of circle is πr^2 (for double r it will become the same).....
Radhey Radhey* , Thank you*......
Similar questions