Skip to main content
write a c program to find area of triangle when base and height is given
C-PROGRAM
TO FIND AREA OF TRIANGLE
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- float base,height,area;
- clrscr();
- printf("enter the base , height of triangle\n);
- scanf("%f%f",&base&heigtht);
- area= 0.5*base*height;
- printf("the area of triangle is %f",area);
- getch();
- }
Comments
Post a Comment