Question #37491

make a program to find the area of right triangle having base 2cm & 2cm height.

Expert's answer

#include using namespace std;

int main()

{

int a,b,S;

a=2;//height

b=2;//base

S=(a*b)/2; //area

cout <<"Area of right triangle = "<< S;

return 0;

}

int main()

{

int a,b,S;

a=2;//height

b=2;//base

S=(a*b)/2; //area

cout <<"Area of right triangle = "<< S;

return 0;

}

## Comments

## Leave a comment