Compare 2 numbers
Write a program that receives 2 numbers from the input and prints the larger number
Write a program that receives 2 numbers from the input and prints the larger number
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
a = int(input(" namber:") b = int(input("shomare : ") if a > b : print(a) else: print(b)
entry1 = int(input("your number : ")) entry2 = int(input("your number : ")) def chap(num1,num2): if num1 > num2: print(f"number is big : {num1}") elif num1 < num2: print(f"number is big : {num2}") elif num1 == num2: print(f"number1 and number2 is equal") chap(entry1,entry2)
num1 = int(input("number 1: ")) num2 = int(input("number 2: ")) if num1 >= num2: print(num1) else: print(num2)
a=int(input('num:')) b=int(input('num:')) c=0 if a>0: c=a if b>a: c=b print(c)
X=float(input("x: ")) Y=float(input("y: ")) if X>Y: max=X else:max=Y print(max)
A = int(input("Enter Number: ")) B = int(input("Enter Number: ")) Max =max(A,B) print(Max)
num1 = float(input("لطفاً عدد اول را وارد کنید: ")) num2 = float(input("لطفاً عدد دوم را وارد کنید: ")) # Compare and print larger number if num1 > num2: print(f"عدد بزرگتر: {num1}") elif num2 > num1: print(f"عدد بزرگتر: {num2}") else: print("هر دو عدد برابر هستند.")
Submitting answers is currently unavailable.
Create a button below: when the mouse marker is on it:
Write a program that receives a sentence from the input and prints the longest and shortest word available in the sentence in the output
Write a program that receives a number and prints the figure below according to the number, the Number Example: 3 #######Number Example: 5 #######################
Write a program that receives an email address and separates the various sections as follows and prints on the output example: email: [email protected] info amirhn.ir Example: email: [email protected] username gmail.com
Write a program that receives 2 numbers from the input and prints the larger number
Write a program that receives students' scores and names and prints from the highest to the lowest score, respectively
Write a function that receives infinite parameter and returns the average of numbers. If the parameter was non -extensive, it ignores it
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.