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

What cell gives rise to all formed elements?
Some one please help
write an equation that is perpendicular to y = 2x + 5 and passes through (3 , -2)
what is the translation?
Who was charged with distributing leaflets to recent draftees, encouraging resistance to the military draft?
Dogs and cats filled the animal shelter and the noise they made was incredibly loud. What is the pronoun in this sentence? A. made B. filled C. and
The company and all of ____ assets were released to creditors. A. it's B. its' C. its
Unlike a direct democracy, in which all citizens decide laws, a representative democracy involves which of the following?
A student taking a math class needs 6 minutes to solve each algebra problem. How many problems can the student solve in 72 minutes?
What’s the answer for this question?