1 solutions
-
0
C++ :
#include <iostream> #include <cstdio> using namespace std; int main() { double r; double s,l; cin>>r; l=2*3.1415*r; s=3.1415*r*r; printf("%.2lf\n",l); printf("%.2lf\n",s); // printf("%.2lf\n",l); return 0; }Pascal :
const pi=3.1415; var c,s,r:real; begin read(r); c:=2*pi*r; s:=pi*sqr(r); writeln(c:0:2); writeln(s:0:2); end.
- 1
Information
- ID
- 17118
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By