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 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
Get step-by-step solutions from verified subject matter experts
