# Answer to Question #37491 in C++ for umair saddique

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;

}

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment