Sunday, June 18, 2023

Program to display integer numbers from "started" number to "finished" number

i=input("define a number from its start \n")
i=int(i)
a=input("define a number to the end \n")
a=int(a)
print("Start of a program")
while i<=a:
    print(i);
    i+=1
print("The end of a program")

No comments:

Post a Comment