- 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
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')