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

which island was influenced by islam first: borneo or mindanao
The first written constitution for the united states was called
why is it important for historians to study historiography
¿dónde está (is) la escuela cervantes? ¿qué cursos ofrecen (do they offer) en la escuela cervantes?
Drag each label into the appropriate position to indicate whether each given item is related to carbohydrates, proteins, or lipids.
It takes 100 n to move a box 10 meters in 5 seconds. how much power is required?
how do I solve 6x-5=7-9x
How do you solve 1650÷55
Find the length of TC. TU = 10, UC = 6. Show equations and all work that leads to your answer.
The first written constitution for the united states was called