题解 | #牛牛的圆#
牛牛的圆
https://www.nowcoder.com/practice/75a202e826d048a39824ec694b5ce7e3
#include<stdio.h>
int main()
{
double r,s;//定义变量,double比float范围大精度高,float更快,按情况选
scanf("%lf",&r);//输入半径
s=3.14*r*r;//计算面积
printf("%lf",s);//输出面积
return 0;
}
