#C4198. Cylinder Surface Area and Volume Calculation

    ID: 47709 Type: Default 1000ms 256MiB

Cylinder Surface Area and Volume Calculation

Cylinder Surface Area and Volume Calculation

Given a right circular cylinder with radius r and height h, calculate its total surface area and volume.

The formulas used are:

  • Total Surface Area: \( 2\pi r (r+h) \)
  • Volume: \( \pi r^2 h \)

Read the input from standard input and output the two computed values to standard output.

inputFormat

The input consists of a single line with two space-separated numbers representing the radius r and height h of the cylinder.

outputFormat

Output two numbers: the total surface area and the volume of the cylinder, separated by a space.

Make sure to use the formulas:

\( \text{Surface Area} = 2\pi r (r+h) \) and \( \text{Volume} = \pi r^2 h \).

## sample
1 2
18.84955592153876 6.283185307179586