C programming & online Test
Pages
Homepage
C-Online Test
C-Interview Question
C-program
C-Tutorial
Disclaimer
Wednesday, 19 February 2014
write a program to find the area of triangle.
#include<stdio.h>
main()
{
float base,height,area;
printf("enter the base and height of triangle:");
scanf(" %f %f",&base,&height);
area=(1.0/2.0*(base*height));
printf("area of triangle= %f\n",area);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Contact Form
Name
Email
*
Message
*
No comments:
Post a Comment