Write a program in C to Find the area of triangle

 // Find the area of triangle

#include <stdio.h>

int main()

{

float B,H,area;

printf("Enter Height of Triangle: \n");

printf("Enter Base of Triangle: \n");

scanf("%f", &H);

scanf("%f", &B);

area = B*H/2;


printf("area of the triangle is= %f", area);

return 0;


Comments

Popular posts from this blog

Automations and robotics

Solid Pattern Program In Java Language

Palindrome Pattern Program In Java Language