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.
1
Expert's answer
2013-12-05T10:57:42-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS