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

how does kinetic engery affect the stopping distance of a small vehicle compared to a larger vehicle?
How do you define personal responsibility? When something bad happens that involves you, how do you know whether or not you bear some responsibility for it?
if you need 60 water bottles for 30 runners how many water bottles would you need for 20 runners
240,000 is 90% of what number
What is the longest word in the world in English
What do You have when You snap your fingers twice every second?
I hate this part I need help for 4 and 5 is it a b c or d
If tan θ = 3/2 and cos θ < 0, use the fundamental identities to evaluate the other five trig functions of θ.
Which of these is found within all cells?
Which of Johnson's policies represent the beliefs of a typical white Southerner? How did these beliefs shape is policies?