#C12101. Cylinder Surface Area Computation
Cylinder Surface Area Computation
Cylinder Surface Area Computation
Given two numbers representing the radius r and height h of a cylinder, compute its total surface area using the formula:
$$ S = 2 \pi r (r + h) $$
The formula accounts for both the lateral surface area and the area of the two circular bases combined. Your program should read the input values from stdin
and output the computed surface area to stdout
.
inputFormat
The input consists of a single line containing two numbers: the radius r and the height h of the cylinder, separated by space. Both values can be integers or floating point numbers.
outputFormat
Output a single number representing the surface area of the cylinder. The result should be computed using the formula $$ S = 2 \pi r (r + h) $$.
## sample1 1
12.566370614359172