Write a program to find the smallest of two numbers (if condition :Syntax 2)
Textwindow.writeline("Program to display the smallest of two numbers")
TextWindow.backgroundcolor="yellow"
TextWindow.foregroundcolor="blue"
TextWindow.Write("Enter Number 1:")
number1=textwindow.Read()
TextWindow.Write("Enter Number 2:")
number2=textwindow.Read()
If(number1 < number2) then
TextWindow.WriteLine("-->" + number1 + " is smaller than " + number2)
Else
TextWindow.WriteLine("-->" + number2 + " is smaller than " + number1)
EndIf
Answers
Answered by
0
Explanation:
Textwindow.writeline("Program to display the smallest of two numbers")
Similar questions