CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include "circle.h"
#include "square.h"
using namespace std;
int main()
{
float radius;
float l;
square sq;
circle ci;
int menuSelect;
do {
cout << endl << "Calculate Area:" << endl;
cout << endl << "Select a Shape: " << endl << "1: Circle " << endl
<< "2: Square " << endl << "0: Exit " << endl
<< "Please make your selection: ";
cin >> menuSelect;
switch (menuSelect) {
case 1:
cout << "Enter radius of the circle: ";
cin >> radius;
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run