Computer Science, asked by samridhibhuyan, 4 months ago

write a basic 256 program to input two numbers and display the largest of two

Answers

Answered by ButterflyUSR
14

Answer:

PRINT "----Program to add two numbers----"

'Consider two variables A and B. You can give any values to the variables.

A=5

PRINT "The value of first variable is: "; A

B=6

PRINT "The value of second variable is: "; B

'Now, we are adding them. Before adding, we need to store result in some other variable. Let another variable is Sum.

Sum = A + B

PRINT "The sum of the two numbers is: "; Sum

MARK ME BRAINLIEST✨✨✨✨✨✨✨

Answered by razaabbas753
2

Answer: the program is

input "Enter a digit 1",N

input "Enter digit 2",N2

if N>N2 then

print N+" is the greatest"

else

print N2+"is the greatest"

endif

Explanation: The program says to enter 2 number N and N2 if N>N2 then N is the greater number or else N2 is the greatest number.

Similar questions
English, 11 months ago