Question: Write a while loop that adds the first 5 0 numbers ( from 1 to 5 0 , inclusive ) together. To do so ,
Write a while loop that adds the first numbers from to inclusive together.
To do so use a while loop that continues while the condition of curnum being less than or equal to stopnum is True.
Inside the loop, it should add curnum to the running total variable, and then add to curnum.
Make sure to check at the end that the value of total reflects the total summation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
