课堂实验(圆面积)

#include<stdio.h>
int main()
{
    double r,s;
    
    printf("enter r:");
    scanf("%lf",&r);
    
    if(r>0){
        s=3.14159*r*r;
        printf("s=%.3f
",s);
    }
    else
        printf("输入错误");
        
    return 0;
}
原文地址:https://www.cnblogs.com/reaper/p/3367645.html