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 50 numbers (from 1 to 50, inclusive) together.
To do so, use a while loop that continues while the condition of cur_num being less than or equal to stop_num is True.
Inside the loop, it should add cur_num to the running total variable, and then add 1 to cur_num.
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!