Integers between 2 pcs
Write a program that prints an integers in the output.
Get the desired interval from the input.
Write a program that prints an integers in the output.
Get the desired interval from the input.
let msg = 'error' alert(msg)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
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
num1=int(input("please enter num1: ")) num2=int(input("please enter num2: ")) for i in range(num1,num2+1): print(i)
x = int(input('x :')) y = int(input('y :')) for i in range(x , y): print(i)
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
val1 = int(input("A:"))
val2 = int(input("B:"))
for x in range(val1 , val2):
print(x)
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)
Submitting answers is currently unavailable.
Write a program that receives a sentence from the input and prints the longest and shortest word available in the sentence in the output
1- The user selects a number from 0 to 100 in his mind 2- The program guesss the user's desired number 3- The user according to the guessing number is one of the options (the correct guess, the number is larger, the number ... Moore ...
Write a function that receives the bank card number as an entrance and places * for all its digits except the first and last digits and give some example as the example below: ("603711121119900") "60 ... 60 ...
The program receives the amount of distance traveled to kilometers and the amount of fuel consumed in liter and prints according to the following instructions, whether the car is low or high. If the fuel consumption of this car is less than 7 liters ...
Parking Management Program Write: When arriving, arrival time and car license plate number stored when exit, exit time save for the desired car at any moment (in the parking lot, exit) and other information ...
We want to open the cow door, we don't know the password, but we have the following information: the second -digit safing password and the fifth digit equivalent to the first number of the first digit of a larger unit ...
Write a code that uploads a video with an address (test) on the page. There are video control buttons too
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.