mmdtyagi
mmdtyagi mmdtyagi
  • 04-03-2021
  • Computers and Technology
contestada


Write a program in QBasic to enter two numbers and print the greater one.​

Respuesta :

Sarthak2005
Sarthak2005 Sarthak2005
  • 04-03-2021

Answer:

REM

CLS

INPUT “ENTER ANY TWO NUMBERS”; A, B

IF A > B THEN

PRINT A; “IS GREATER”

ELSE

PRINT B; “IS GREATER”

END IF

END

Answer Link
ADVENTUROUSBOY
ADVENTUROUSBOY ADVENTUROUSBOY
  • 04-03-2021

class one

{

public static void main ( )

{

int a = 1,b = 2;

if ( a > b )

{

System.out.print (" greater number is " + a);

}

else if ( a < b )

{

System.out.print (" greater number is " + b);

}

}

}

Answer Link

Otras preguntas

Definition of challenges
Jason takes two centimeters in medicine how many milliliters is it
What are some questions I should ask when judging the quality of a primary source
How are hot spots used to track plate motion
20 ounces to 25 ounces find the percent of change
distinguish between ovulation and menstruation
6. Some scholars believe that people from Asia arrived in the Americas about 15,000 years ago. According to this theory, what was the reason these people came?
name a fraction that is less than or greater than the given fraction. draw to justify your answer. greater than 1/3 -
how do you factor 8x + 56
What's greater 1/4 or 4/4