Share your repls and programming experiences

← Back to all posts
4.3 Exercise B - Geometry
PatelJanviMJanv (1)
  • The program will ask the user for a small decimal number.
  • The program will ask the user for a large decimal number.
  • Using those numbers as lower and upper bounds, the program will randomly generate a decimal value between the two.
  • Using the randomly generated number, The program will calculate the volume of a sphere if it were to have that size radius.
  • The program will output the radius as well as the volume back to the user.