c++ programs
c++ programs, basic programs
Monday, July 12, 2010
A program to calculate area of triangle
#include
#include
void main()
{
int height,width,area;
clrscr();
height=3;
width=5;
area=1/2*height*area;
cout<<"the area of triangle is "<
getch();
}
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment