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: "<
includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started