May-19-2017, 08:37 PM
1. assign user input to variable (str)
2. check the user input. if it is THAT specific value you want to use for quit - then use break to exit the loop
3. if it is not p.2 - convert to number and calculate
4. Also why you set size = 40 and never use it. think what condition should you use in the while statement.
2. check the user input. if it is THAT specific value you want to use for quit - then use break to exit the loop
3. if it is not p.2 - convert to number and calculate
4. Also why you set size = 40 and never use it. think what condition should you use in the while statement.