Advertisement
Guest User

Algorithm

a guest
Jun 19th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Initialize VAR_DIMENTIONS in a list of positive integers
  2. Initialize VAR_NUMBER as an integer
  3.  
  4. Define function to calculate the TOTAL_AMOUNT
  5. Set TOTAL_AMOUNT to 1
  6. For each item in VAR_DIMENTIONS
  7. Set TOTAL_AMOUNT to product of VAR_DIMENTIONS
  8. Return TOTAL_AMOUNT
  9. Set TOTAL_AMOUNT to TOTAL_AMOUNT times VAR_NUMBER times 7
  10.  
  11. Print TOTAL_AMOUNT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement