fork download
  1. #include <stdio.h>
  2.  
  3. int main ()
  4. {
  5.  
  6. /* Initialize sum */
  7. float area, radius, PI=3.1416;
  8. printf("Enter the radius of circle\n");
  9. scanf("%f", &radius);
  10. area = PI * radius*radius;
  11. printf("area is %f" , area);
  12. if (area >10)
  13. printf("area is over 10\n");
  14. return 0;
  15. }
  16.  
  17.  
Success #stdin #stdout 0s 4544KB
stdin
15
stdout
Enter the radius of circle
area is 706.859924area is over 10