fork download
  1. // Area of Circle
  2. #include<stdio.h>
  3. int main()
  4. {
  5. float r, a, pi=3.14;
  6. printf("Enter The Radius of Circle:");
  7. scanf("%f",r);
  8. a = pi*r*r;
  9. printf("Area of the circle is:%f\n",a);
  10. return 0;
  11. }
Success #stdin #stdout 0.03s 25760KB
stdin
Standard input is empty
stdout
// Area of Circle
#include<stdio.h>
int main()
{ 
    float r, a, pi=3.14;
    printf("Enter The Radius of Circle:");
    scanf("%f",r);
    a = pi*r*r;
    printf("Area of the circle is:%f\n",a);
    return 0;
}