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

The most energetic of the forms of radioactive decay is ________________.
what is 42/56 in simplest form?
55 is $40% of what number
Choose the correct definition for bosque. a. shrubbery b. tree c. forest d. stream
What was the name given to communist rebel fighters in South Vietnam? a. Vietcong b. Northern Regulators c. Freedom Fighters d. Communist Fighters
whats 1,327 to the nearest hundred
Who produced large quantities of steel very efficiently by buying and controlling iron ore deposits, steel mills, and railroads? a. Andrew Carnegie b. Jean Len
which is bigger 40% of 200 or 1/3 of 150
Movement of molecules from an area of higher concentration to one of lower concentration is called ___________________. a. osmosis b. mitosis c. diffusion d. a
draw a figure with the given perimeter. 6 units