program to find smallest and largest number from given four numbers using decision making statement
Answers
Answered by
1
Answer:
In python
num1 = int(input ("Enter number 1"))
num2 = int(input ("Enter number 2"))
num3 = int(input ("Enter number 3"))
num4 = int(input ("Enter number 4"))
If num1 > num2:
if num1 > num3:
if num1 > num4:
print ("Number 1 is Greater")
else:
print ("Number 4 is Greater")
else:
if num3 > num4:
print ("Number 3 is Greater")
else:
print ("Number 4 is Greater")
else:
if num2 > num3:
if num2 > num4:
print ("Number 2 is Greater")
else:
print("Number 4 is Greater")
else:
print("Number 3 is Greater")
madhalaimuthucharlas:
can you give me your number
Answered by
1
Answer:
the correct answer is in python
Similar questions
Science,
1 month ago
Computer Science,
1 month ago
Chemistry,
9 months ago
English,
9 months ago
English,
9 months ago