Write Another Program Called Program42py Generates Output Using Loop Output Needs Code Ran Q37096072

Write another program called program42.py that generates theoutput as the below, but by using a while loop. Output A whileneeds more code than a for range for the same function! on a newline to end the program as shown below. SAMPLE RUN 5 10 15 20 25 3035 40 45 50


Solution


i = 5while(i<=50): print(i) i += 5

Output:

5101520253035404550

Please up vote the solution if it helped. Thanks!

Output: Please up vote the solution if it helped. Thanks!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.