Question: Make c++programming in which the user choose which polygon and compute for the area. Please make use of relational operator logical operator and arithmetic operator
Make c++programming in which the user choose which polygon and compute for the area. Please make use of relational operator logical operator and arithmetic operator At Least 3PER CATEGORY! The below pic is my draft unfortunately was cut. So here is my code. #include using namespace std;int main(){ int A1,A2,A3,poly,s1,l1,w1,num; float radius, area; cout<<"Please choose which polygon 1.Square 2.Rectangle 3.Circle : "; cin>>num; if("num >= 1") { cout<< "Enter the side of the square: "; cin>>s1; A1=s1*s1; cout<< "Area of Square is: "<>l1; cout<< "Enter the width of the rectangle: "; cin>>w1; A2=l1*w1; cout<<"Area of Rectangle is: "<
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
