Answer to Question #37491 in C++ for umair saddique
make a program to find the area of right triangle having base 2cm & 2cm height.
1
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment