CPP_Basics_Syntax/第一讲 变量、输入输出、表达式与顺序语句/604.cpp

11 lines
153 B
C++
Raw Normal View History

2023-03-23 23:09:30 +08:00
#include <cstdio>
using namespace std;
int main()
{
double pi = 3.14159, r;
scanf("%lf", &r);
printf("A=%.4f", pi * r * r);
return 0;
}