编辑代码
C语言代码
gcc13.2
gcc7.5.0
clang-10
运行
double
y;
if
(r>
0
); y=
3.14
*r*r;
else
{
printf
(
"r的值错误,请重新输入\n"
) y=
0
; }
return
y;