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

What is 4p-13p-p=-150 More 2 step equations. I don't get this one at all
Why does an electrically heated mirror stay clear when a person has a shower?
At the start of "The Necklace," why does Mathilde's husband go through "great trouble" to get an invitation to the ball?
what are the components of blood?
What is Taurine? Please help :)
Complete the following statements by writing the missing word (s). 16. If two lines intersect, then their intersection is exactly ________________. 17. ________
What does "to see the elephant mean"?
How do we call a very small video,that is repeating unlimitedely
Whats the equation of a circle centered at (7,1) that passes through (-2,10)
could you tell me what is sputnik?