Create 1875.cpp
parent
0b84d23b92
commit
dbc60c5dfc
|
@ -0,0 +1,12 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int h,r;
|
||||
const double pi=3.14;
|
||||
cin>>h>>r;
|
||||
cout<<pi*r*r*h<<" "<<pi*r*r*2+2*pi*r*h<<endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue