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

hard work is related to success as preparation is related to
-2a(a+b-5)+3(-5a+2b)+b(6a+b-8)
What was a root cause of the Containment Policy?
Alex lives 500 yards from the park. How many inches does alex live form the park?
A container holds six red marbles and four green marbles. You select two marbles from the container (without replacement) what is the probability that you will
For the equation y = 3x2 − 4x + 11, choose the correct application of the quadratic formula. x equals four plus or minus the square root of n
Which definition correctly illustrates the bandwagon propaganda technique?
if sin x = cos 54 degrees what is value x
Southern and Eastern Africa tends to be drier and cooler than West and Central Africa because Southern and Eastern Africa has__ A. More extensive savannas. B. H
An atom of sodium-23 (atomic number = 11) has a positive charge of +1. Given this information, how many electrons does it have? How many protons and neutrons do