Jan 30, 2013

The Area of Triangle Program

/"The Area of Triangle program"\

#include"stdio.h"
#include"conio.h"
void main();
{
clrscr();
float Base,Height,Teiangle_Area;
printf("Enter the value of Base&Height:");
scanf("%f%f",&Base,&Height);
Triangle_Area=0.5*Base*Height;
printf("The Area of triangle is=%.2f",Triangle_Area);
getch();
}
 

No comments:

Post a Comment

Thank you for visit this site. You will get many programming news from here and learn programming very easily.

Popular Posts