Advertisement
Guest User

GG

a guest
Apr 25th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. procedure volumeMenu
  2. var userChoice : int
  3. var answer : real
  4. cls
  5. put "VOLUME CALCULATIONS"
  6. put ""
  7. put " 1. Volume of a rectangle"
  8. put " 2. Volume of a circle"
  9. put " 3. Volume of a triangle"
  10. put " 4. Volume of a parallelogram"
  11. put ""
  12. put "Enter your choice: " ..
  13. get userChoice
  14.  
  15. if userChoice = 1 then
  16. answer := volumeRect ()
  17. put "The volume of the rectangle is ", answer
  18. elsif userChoice = 2 then
  19. answer := volumeCircle ()
  20. put "The volume of the circle is ", answer
  21. elsif userChoice = 3 then
  22.  
  23. elsif userChoice = 4 then
  24.  
  25. else
  26.  
  27. end if
  28. end volumeMenu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement