OJ-Problems-Source/QUSTOJ/1875.cpp

13 lines
193 B
C++
Raw Permalink Normal View History

2016-10-24 17:35:26 +08:00
#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;
}