week3_area.rtf
-
Upload
amarat-thongthawee -
Category
Documents
-
view
214 -
download
1
Transcript of week3_area.rtf
= 1/2*()* source file #include
#include void main(){float A1,A2,h,area;printf("Please insert to side1:");scanf("%f",&A1);printf("Please insert to side2:");scanf("%f",&A2);printf("Please insert to side heigh:");scanf("%f",&h);area = 0.5 * (A1+A2)*h;printf("Result area is %f",area);}