Write a program to find area of triangle(a=hb.5) a = area h = height b = base

#include<stdio.h>
int main()
{
 float a,h,b;
 printf("\n Enter height :");
 scanf("%f",&amp;h);
 printf("\n Enter base :");
 scanf("%f",&amp;b);
 a=b*h*0.5;
 printf("\n Area of triangle = %f",a);
 return 0;
}

Next practical link : Practical 3

Categories: GTU PRACTICALSPPS

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *