Question: by using python3 Write a while loop to add the whole numbers up to the number that will be entered by the user. Here is

 by using python3 Write a while loop to add the whole by using python3

Write a while loop to add the whole numbers up to the number that will be entered by the user. Here is an example intput-output: Enter a number: 10 The sum of natural numbers up to 10 is 55 Wanning: Do not use n*(n+1)/2, use while loop

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!