Hello There, Guest! Login Register
Advertise Here | Remove Ads

TRIANGLE AREA (C program)

  • 0 Vote(s) - 0 Average


10-31-2016, 12:28 AM #1
RabidHasan Offline MODERATOR MODERATORS
Posts:314 Threads:267 Joined:Dec 2015 Reputation: 1 Sex Male
FFUC: $0
Country: Bangladesh
Code:
#include<stdio.h>
main ()
{
float b, h, area;
printf("The Land Locked of Triangle is: ");
scanf("%f", &b);
printf("The Height of Triangle is: ");
scanf("%f", &h);
area=.5*b*h;
printf("The area of Triangle is: %.2f\n\n", area);
return 0;
}






Forum Jump:


Users browsing this thread:1 Guest(s)

Advertise Here | Remove Ads