#include <stdio.h>
void main(){
float area,diagonal,branchline;
area = 0;
printf("Area of Trapezium\n");
printf("Enter Diagonal:");
scanf("%f",&diagonal);
printf("\nEnter sum of branch line :");
scanf("%f",&branchline);
diagonal = 0.5*diagonal;
area = diagonal*branchline;
printf("\nArea of Trapezium = %f",area);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น