- 1

Please sort the code in an order.

input Number1,Number2,Number3 if (Number1<Number2)then end-if display "Num2 is smallest" display "Num3 is smallest" end-if else-if (Num2<Num3)then display "Num3 is smallest" if(Num1<Num3)then else display"Num1 is smallest" else

28th Mar 2021, 12:13 PM
Nikhila Yelishetty
Nikhila Yelishetty - avatar
1 ответ
+ 1
Correct order: input Number1, Number2, Number3 if (Number1<Number2)then end-if display "Num1 is smallest" else-if (Num2< Num3) Display "Num2 is smallest" Else Display "Num3 is smallest" The code will be like: Num1 = input() Num2 = input() Num3 = input() if (Num1<Num2): print('Num1 is smallest') elif (Num2<Num3): print('Num2 is smallest') else: print('Num3 is smallest')
28th Mar 2021, 12:50 PM
Scarlet Witch
Scarlet Witch - avatar