Sunday, February 1, 2026

Small Basic Code To Display the largest number among two numbers.

(a) To input two numbers and display the largest number.

TextWindow.WriteLine("Enter First Number ")

num1=Textwindow.ReadNumber()

TextWindow.WriteLine("Enter Second Number ")

num2=Textwindow.ReadNumber()

If num1>num2 Then

           TextWindow.WriteLine("The largest number is num1 "+ num1)

Else

           TextWindow.WriteLine("The largest number is num2 "+ num2)

     EndIf

Output




No comments:

Post a Comment

Programmingway@Eklavya Technosys!: Computer Solutions || Class-4 || Computer for Scho...

Programmingway@Eklavya Technosys!: Computer Solutions || Class-4 || Computer for Scho... :  1) Choose correct one :- 1) The step by step pla...