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

Does the phrase "dives below the surface of the ocean" represent a positive or negative number? a) Positive b) Negative c) Neither d) Both
he disappeared in winter write it in negetive form​
The first delegates to the party nominating conventions for presidential election are selected in the ____ caucuses in January
Spore formation dependent on bacterial availability. a) True b) False
Find the area 5cm 19cm 27cm
What is the answer telllllll me
What happens that indicates the beginning of the Otto cycle? a. Piston at TDC at beginning of intake stroke b. Piston at TDC at beginning of compression stroke
storyline experience in going to school.
What describes earth’s magnetic flow
last week, steve made $18.75 an hour. this week, he will get a 8% increase in the amount he makes per hour. what is his pay per hour after the increase?