fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int h, b;
  5. printf("welcome to the area of triangle calculater");
  6. printf("please enter height: ");
  7. scanf("%d",&h);
  8. printf("Now enter the breath: ");
  9. scanf("%d",&b);
  10.  
  11. float area =0.5*h*b;
  12. printf("the area of the triangle is %f",area);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
welcome to the area of triangle calculaterplease enter height: Now enter the breath: the area of the triangle is 27141079040000.000000