Wed Nov 16 2022 16:50:40 GMT+0000 (Coordinated Universal Time)
Saved by @Mohamedshariif
#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { float b,h,a; printf("please enter base and height; "); scanf("%f %f",&b,&h); a=1.0/2.0*b*h; printf("the area of triangle with base %f and height %f is %f",b,h,a); return 0; }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments