Computer Science, asked by jassu5169, 10 months ago

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 Ketan1703
1

Answer:

n = 0

num1 = input("Enter a no. ")

while (n < num1):

print n

n = n + 1

Answered by QwertyPs
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
QwertyPs: u have taken python language
QwertyPs: right
QwertyPs: and what do u mean by , don't know more about programming
jassu5169: yes i have python langugae
jassu5169: i know c c ++ and java but python i dont know more about this
jassu5169: hi plz snd me answer this question
jassu5169: which i create today
jassu5169: plz hlp me
jassu5169: hi
Similar questions