// Computing surface area of a cylinder
#include <iostream>
using namespace std;

// The prototype of cylinderArea
double cylinderArea(double, double);

int main ()
{
  double r, h, A;

  cout << "Input radius and height: ";
  cin >> r >> h;

  A = cylinderArea(r, h);

  cout << "The area is " << A << endl;

  return 0;
}

// Function definition of cylinderArea
double cylinderArea(double radius, double height) {
  return 2.0*3.14159265358979323846*radius*(radius + height);
}
