CodeSolved

Solved Programming Questions & Exercises

Integers between 2 pcs

Practice Easy 26/ Download 2488 Views

Write a program that prints an integers in the output.

Get the desired interval from the input.

20 Answers

This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
num1=int(input("please enter num1: "))
num2=int(input("please enter num2: "))
for i in range(num1,num2+1):
    print(i)
Saeeda33 Download Python
x = int(input('x :'))
y = int(input('y :'))
for i in range(x , y):
    print(i)
Akams Download Python
a = int(input("add1:  "))
b = int(input("add2:  "))
if (a == b) or (b == a + 1) or (a == b - 1):
    print (" adadi beneshan nist")
elif   a > b:
    x = b + 1
    while x < a :
        print(x)
        x += 1
else:
    j = a +1
    while j < b :
        print(j)
        j += 1
Esmaeelphy Download Python
val1 = int(input("A:")) 
val2 = int(input("B:")) 

for x in range(val1 , val2):
    print(x) 
User 3385 Download Python
c = int(input("a:"))
d = int(input("b:"))

while c > d:
    print(c)
    c = c - 1
while d > c:
    print(d)
    d = d - 1

# Receive two numbers from the user
number1 = int(input("Enter your number1 :"))
number2 = int(input("Enter your number2 :"))
# Printing numbers between these two numbers
for i in range(number1 + 1, number2):
    print(i)
while True:
    a = int(input("adade aghaz bazeh ra vared kon: "))
    b = int(input("adade payane bazeh ra vared kon: "))
    if a<b:
        break
    print(f"{b} bozorg tar az {a} nist")
    print("adadi aghaz bayad az payan kochak tar bashad")

print("adad haye zir haseli az adad haye sahihe bazeyi hastand ko shoma vared nemoodin ")

for i in range(a,b):
    if i % 1 == 0:# If I didn't make the condition, it will not be the case
        print(i)
Azhgun Download Python
<< Previous page 1 2 Next page >>

Submit answer

Submitting answers is currently unavailable.

Related content

Detection using AI
×
×
Close