fork download
  1. #include<stdio.h>
  2.  
  3. void main()
  4.  
  5. {
  6. float base,height,area;
  7. printf("enter the value of base and height:> ");
  8. scanf("%f %f",&base,&height);
  9. area=0.5*base*height;
  10. printf("\narea=%f",area);
  11. }
Runtime error #stdin #stdout 0s 2172KB
stdin
Standard input is empty
stdout
enter the value of base and height:> 
area=-nan