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

Which year of the Great Depression saw the highest world unemployment rate? a. 1930 b. 1931 c. 1932 d. 1934
Which of these organic molecules functions to help speed up biological chemical reactions? A) lipids B) proteins C) nucleic acids D) carbohydrates
Kim bought a poster that cost 8,95 and some colored pencils. The total cost was 21.35. How much did the colored pencils cost?
You press on the carotid artery in your neck and begin counting. What are you most likely measuring?
A solution tested in the laboratory shows pH 14. Which of the following statements best describes this solution? A. It is a highly acidic solution with a high h
Mixtures can be separated by physical changes. Please select the best answer from the choices provided T F
what would happen if your a carnivore and you eat plants
On the pH scale, a 7 indicates _____. a base an acid neutrality
what is the decimal of 13 /20
Public land is managed by several agencies at the state and federal levels.