program to find area of triangle

program to find area of triangle

#include<stdio.h>
  void main()
  {
  int base,hight;
  float area;

  printf("enter base and hight :");
  scanf("%d%d",&base,&hight);

 area=0.5*base*hight;
 printf("area of triangle is :%f",area);


       out put:-

No comments:

hia friends you are seeing my blogger thank's. Powered by Blogger.