Compare commits
3 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
91a1f33395 | 5 months ago |
|
|
2c28b552d0 | 5 months ago |
|
|
7c45634123 | 5 months ago |
@ -0,0 +1,16 @@
|
|||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
const double pi=3.14;
|
||||||
|
double r,c,s;
|
||||||
|
cin>>r;
|
||||||
|
c=2.0*pi*r ;
|
||||||
|
s=pi*r*r;
|
||||||
|
cout<<c<<endl;
|
||||||
|
cout<<s<<endl;
|
||||||
|
|
||||||
|
|
||||||
|
return 0 ;
|
||||||
|
}
|
||||||
Binary file not shown.
Loading…
Reference in new issue