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 the Constitution limit presidential power?
in the expression 90 5z,the coefficient term is
A leaky faucet in Kali's house drips water at a rate of 42 gallons per week. How many gallons does the faucet drip in 30 days
29.10 rounded to the nearest tenth
which is greater a 2.75 gallon container or juice or 12 liter container of juice
What is the position of the element ammonia in periodic table?
The present-day Republican Party is descended from the _______ Party. A. Federalist B. Anti-Federalist C. Conservative D. Democratic Republican c its
What adds to 22 and multiplies to 21?
Which process requires an external power source?(1) neutralization (3) fermentation(2) synthesis (4) electrolysis
How does TV with 3D capability work?