#include<stdio.h>
#include<conio.h>
#include<math.h>
void main( )
{
int base, altitude;
float area;
printf(“Enter base, altitude”);
scanf(“%d %d”, &base, &altitude);
area=1/2*base*altitude;
printf(“area of triangle is %f”,area);
getch( );
}
Tweet
Programming snippets. C , C++ , C# , Java , PHP , Blogging Tips, Self Help, Wellness,Marketing, Social Media tools
Comments
Post a Comment