Computer Science, asked by vaa3, 3 months ago

program to find smallest and largest number from given four numbers using decision making statement​

Answers

Answered by madhalaimuthucharlas
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
vaa3: why
vaa3: which college?
madhalaimuthucharlas: I'm also engineering student so I asked
vaa3: where are you from?
madhalaimuthucharlas: Tamil Nadu
vaa3: I came Chennai last year
madhalaimuthucharlas: all chats in here all visible to everyone
madhalaimuthucharlas: Christiano lush is my Inst id
vaa3: ok
Answered by chetanakasbe
1

Answer:

the correct answer is in python


chetanakasbe: can someone please tell me how many stars are there in whole universe
madhalaimuthucharlas: 1234567890099987766554332211112233456744456779908876555553223en stars
Similar questions