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 do you make decisions when you deal with ethical issues?
0.009 is 1/10 of which decimal
What conclusion does the image support? A. Mountains and waterways encouraged city-states to develop independently. B. Close proximity to North
What is the y-intercept of the function f(x) = –x + ?
How are dividing fractions used in real life?
cate and elena were playing cards
Is 5.8 greater than fifty eight hundredths
read this letter written by a student to the principal of a school. which sentences support the students argument concering the school lunch policy
¿Cuáles son las diferencias en los papeles que asumen las comunidades y las familias en las diferentes sociedades del mundo?
True or False: Alcohol, caffeine, sugar, fats, and tobacco all put a strain on your body's ability to cope with stress.