fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int b;
  5. float h,At;
  6. b=10;
  7. h=2.5;
  8. At= 1/2*b*h;
  9. printf("The area of the triangle with breadth is :%d and height is :%f is :%F,breadth,height,At");
  10. }
Success #stdin #stdout 0s 5304KB
stdin
45
stdout
The area of the triangle with breadth is :52718376 and height is :0.000000 is :0.000000,breadth,height,At