Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const double PI = 3.14159;
- double area_circle(double radius) {
- return radius*radius*PI;
- }
- double area_rectangle(double base,double height) {
- return base*height;
- }
- double area_triangle(double base,double height) {
- return base*height;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement