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
5101520253035404550
Output: Please up vote the solution if it helped. Thanks!