Computer Science, asked by vedik10, 1 month ago

write a c++ program to find area and perimeter​

Answers

Answered by 00Kamaksh00
1

if(k==0){

cout << " (1) Triangle " << endl;

cout << " (2) Circle " << endl;

cout << " (3) Rectangle " << endl;

cout << " (4) Square " << endl;

cout << " Please enter the number to select shape_ " << endl;

int h;

cin >> h;

if(h==1){

cout << "Triangle_" << endl;

cout << "Your options are: " << endl;

cout << " (1) Area " << endl;

cout << " (2) Side " << endl;

cout << " (3) Perimeter " << endl;

int q;

cin >> q;

if(q==1){

cout << "Enter the length and breadth! " << endl;

cout << "!!CAUTION!! Keep some distance between the input " << endl;

cout << "Atlease 1 meter

Similar questions