Home » , » Basic C Programming Practice - Practice 18

Basic C Programming Practice - Practice 18

Written By Unknown on Thursday, October 10, 2013 | 11:54 PM

=> Write a program in C to find the area of triangle using input value?



Solution :

/Program Name : area of triangle with reading input /

#include<stdio.h>

#include<conio.h>

int main()

{


double breath,height,area;

scanf("%lf%lf", &breath,&height);

area= 0.5 * breath * height;

printf("%lf", area);

getch();

} 



Program Analysis :


Share this article :

Post a Comment

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Learn Programming - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger| Distributed by Rocking Templates