10-14

#include<stdio.h>
int main(void)
{
    double R,S;
    printf("Enter R:");
    scanf("%lf",&R);
    if(R<=0){
        printf("Enter wrong!");
    }
    else{
        S=3.14*R*R;
    }
   
    printf("S=%lf
",S);
    return 0;
}
原文地址:https://www.cnblogs.com/xym0914/p/3367785.html