Write a program to calculate the surface area and volume of cylinder, sphere, cube and cuboid

Write a program to calculate the surface area and volume of cylinder, sphere, cube and cuboid

The surface area formula of cylinder is s = π DH + 2 π R & sup2 or S = 2 π RH + 2 π R & sup2;
The volume formula of cylinder is v = π R & sup2; h or V = sh
The surface area formula of sphere is s = 4 π R & sup2 or S = π D & sup2;
The volume formula of sphere is v = 4 / 3 π R & sup3 or V = 1 / 6 π D & sup3;
The surface area formula of cube is s = 6A & sup2;
The volume formula of cube is v = A & sup3; or V = sh
The surface area formula of cuboid is s = 2Ab + 2ah + 2bh
The volume formula of cuboid is v = ABH or V = sh