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

To calculate the heart rate on a regular rhythm interrupted by pauses, calculate the range slowest to fastest, and then the mean rate. True or False
simplify the expression 3a+7+(3+a)
When riding in a group, where should inexperienced riders position themselves? a) Leading the group b) In the middle c) At the rear d) Beside the most experienc
Discuss the information found on a Time-Phased Force Deployment Data (TPFDD)
What is 49,000 rounded to the nearest thousand
Geometry is hard this test is on midsegments
What are Ways to Address Low Health Literacy?
4. Write a Riddle of your own which have a moral concept 10​
Blood travels away from the heart through which vessels?A. veins->venules-> capillaries->arterioles->arteries->back toward the heartB. arteries-&
Galeno wants to buy a video game at a store having 20%off storewide sale. The regular price of the video game $50.