write a c program to find area of triangle when base and height is given

                                              C-PROGRAM 

                                        TO FIND AREA OF TRIANGLE        

  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5. float base,height,area;
  6. clrscr();
  7. printf("enter the base , height of triangle\n);
  8. scanf("%f%f",&base&heigtht);
  9. area= 0.5*base*height;
  10. printf("the area of triangle is %f",area);
  11. getch();
  12. }
          

Comments