CodeSolved

Solved Programming Questions & Exercises

Integers between 2 pcs

Practice Easy 26/ Download 2842 Views

Write a program that prints an integers in the output.

Get the desired interval from the input.

24 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
# In this code the user numbers entered
number_1 = int(input('enter one number: '))
number_2 = int(input('enter one number: '))

if number_1 > number_2:# This code examines whether or not the correct numbers are entered
    print('Number 1 must be greater than number 2.')
else:
    for i in range(number_1 + 1,number_2):# Finally, our numbers print between user numbers
        print(i)
Amirsaleh 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
# 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)
a=int(input('a: '))
b=int(input('b: '))
for AmirAli in range(a , b):
    print(AmirAli)
else:
    print(b)
User 5026 Download Python
<< Previous page 1 2 3 Next page >>

Submit answer

Submitting answers is currently unavailable.

×
×
Close