#include void area_square(void); void area_triangle(void); void area_rectangle(void); void area_circle(void); void area_rhombus(void); void main(void) { int choice; cout <<"select numbers 1-5 to find the are of :" << endl; cout <<"1 square" << endl; cout <<"2 triangle" << endl; cout <<"3 rectangle" << endl; cout <<"4 circle" << endl; cout <<"5 rhombus\n\n\n" << endl; cout <<"Enter your choice :"; cin >> choice; if (choice == 1) area_square(); else if (choice == 2) area_triangle(); else if (choice == 3) area_rectangle(); else if (choice == 4) area_circle(); else if (choice == 5) area_rhombus(); else cout << "Incorrect choice" << endl; } void area_square(void) { float side, result; cout <<"Enter the side of the square :"; cin >> side; result = side * side; cout <<"area :" << result << endl; } void area_triangle(void) { float base, height, result; cout <<"Enter the base of the triangle :"; cin >> base; cout <<"Enter the height of the triangle :"; cin >> height; result =.5 * base * height; cout <<"area :" << result << endl; } void area_rectangle(void) { float width, height, result; cout <<"Enter the width of the rectangle :"; cin >> width; cout <<"Enter the height of the rectangle :"; cin >> height; result = width * height; cout <<"area :" << result << endl; } void area_circle(void) { float radius, result; cout <<"Enter the radius of the circle :"; cin >> radius; result = 3.141592654 * radius * radius; cout <<"area :" << result << endl; } void area_rhombus(void) { float base, height, result; cout <<"Enter the base of the rhombus :"; cin >> base; cout <<"Enter the height of the rhombus :"; cin >> height; result = base * height; cout <<"area :" << result << endl; }