The largest number received
Write a program that gets 3 numbers and prints the most in the output
Write a program that gets 3 numbers and prints the most in the output
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
one = float (input("enter nambers :"))
two = float (input("enter nambers :"))
three = float (input("enter nambers :"))
if three and two < one :
print (one)
if one and three < two :
print (two)
if one and two < three :
print (three)
num1 = float(input("لطفاً عدد اول را وارد کنید: ")) num2 = float(input("لطفاً عدد دوم را وارد کنید: ")) num3 = float(input("لطفاً عدد سوم را وارد کنید: ")) # Find the largest number largest = max(num1, num2, num3) # Printing the largest number print("بزرگترین عدد وارد شده:", largest)
h=int(input('1:'))
n=int(input('2:'))
v=int(input('3:'))
if v>n>h or v>h>n:
print(v)
elif n>v>h or n>h>v:
print(n)
elif h>n>v or h>v>n :
print(h)
num1 = float (input ('Enter number1: '))
num2 = float (input ('Enter number2: '))
num3 = float (input ('Enter number3: '))
plural = list ([num1, num2, num3])
maximum = max (num1, num2, num3)
index = plural.index (maximum)
if index == 0:
index = 'num1'
elif index == 1:
index = 'num2'
elif index == 2:
index = 'num3'
print ('{} = {}'.format(index, maximum))
a = int(input('a: ')) b = int(input('b: ')) c = int(input('c: ')) max = 0 if a > max : max = a if b > max : max = b if c > max : max = c print(max)
a1=int(input("Enter number1: ")) a2=int(input("Enter number2: ")) a3=int(input("Enter number3: ")) if a1>a2: if a1>a3: print(a1) else: print(a3) elif a2>a3: print(a2) else: print(a3)
add1 = int(input("add1 :")) add2 = int(input("add2 :")) add3 = int(input("add3 :")) if add1 > add2 : if add1 > add3 : print(add1) elif add2 > add3: print(add2) else: print(add3)
Submitting answers is currently unavailable.
Write a program that gets distance to meters and converts to kilometers and shows at the output tips: each km = 1000 m
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- ... ...
Write a program that can obtain the average infinite number of numbers: First, the program must receive the user's numbers (until the user does not enter the number 0, the numbers must continue ...
Write a program that the user can add and delete the student name. After each deletion or adding the student, the list of existing students should be displayed as below Choose: 1.Add 2.Rmove1name: hooshang1 ....
Write a program that receives a number from the user and converts to letters suppose the numbers entered between 0 and 1000000 23 ➞ Twenty Three 405 ➞ Four HundredR
Write a program that receives the infinite number of the number with the help of a graphical interface and performs the compact, multiplication and division on them, for example the user should be able to do the results of the following actions using this ...
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.