实验三

#include<stdio.h>
#define PI 3.14
int main()
{
    float r,s;
    printf("Enter r:");
    scanf("%f",&r);
    s=PI*r*r;
    if(r<=0){
        printf("输入错误");
    }
    else{
        printf("s=%f
",s);
    }

    return 0;
}
原文地址:https://www.cnblogs.com/tangxumin25/p/3367637.html