Problem 2 : Rearrange statements in Program


2-Consider the following program in which the statements are in the incorrect order. Rearrange the statements so that the program prompts the user to input the height and the radius of the base of a cylinder, and outputs the volume and surface area of the cylinder. Also modify the relevant output statements to format the output to two decimal places.

  1. Use the following data to test your program and take a screen shot using this data.

Exercise 2

Enter the height of the cylinder: 3

Enter the radius of the base of the cylinder: 1

Volume of the cylinder = 9.42

Surface area: 25.13