fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main(){
  4. float a,b,area;
  5. printf("Enter the value of a,b:");
  6. scanf("%f %f",&a,&b);
  7. area=(b/4)*(sqrt(4*a*a-b*b));
  8. printf("%f",area);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5320KB
stdin
100
stdout
Enter the value of a,b:0.000000