write a python program which asks the use to enter a positive nunber called "num1" the program then print all numbers between 0 and num
Answers
Answered by
1
Answer:
n = 0
num1 = input("Enter a no. ")
while (n < num1):
print n
n = n + 1
Answered by
1
Hêy Fríèñd...
Here is the Program...
a = 0
num1 = int(input(" Enter a number :"))
while a < num1 :
print (a)
a += 1
.
.
Now if you input 25 as a number. It will print all the numbers from 1 to 24.
.
.
.
I Hope This Will Help You ◉‿◉
QwertyPs:
ohh
Similar questions