求圆的面积,书上的代码可执行却是0,不知道为什么
#include <stdio.h>#define PI 3.14159
double Area(double r);
int main()
{
double Radii,s;
printf("请输入圆的半径:");
scanf("%1f",&Radii);
s=Area(Radii);
printf("半径为%1f的圆的面积是%1f\n",Radii,s);
return 0;
}
double Area(double r)
{
double s;
s=PI*r*r;
return s;
}