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
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)
# 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)
a=int(input("adad aval:")) b=int(input("adad dovom:")) for i in range(a,b) print(i)
def print_integer_range(start, end): # Printing integers within the specified range for number in range(start, end + 1): print(number) # Receive the interval from the user. try: start = int(input("لطفاً حد پایین بازه را وارد کنید: ")) end = int(input("لطفاً حد بالا بازه را وارد کنید: ")) if start > end: print("حد پایین باید کمتر یا برابر با حد بالا باشد.") else: print(f"اعداد صحیح در بازه [{start}, {end}]:") print_integer_range(start, end) except ValueError: print("لطفاً فقط اعداد صحیح وارد کنید.")
Submitting answers is currently unavailable.
Scissors Paper Play: 1- The user chooses one between paper or scissors. 2- Select the system by random. 3- With the choice of user and system, the result is displayed and the user's rating is calculated 4- ... ...
Using JavaScript, send a request with the following specifications method = posturl = /test.php FNAME information =? Lname =? Age =? Get the information above through Prompt from the user
Write a program that receives text from the input and prints the translation in the output. It can also be able to get English text from the entrance and convert it to a coder. Input: hooshang ....--- .... ...
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.