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

Diane is 25 years older than her son Craig. The sum of their ages is 105. How old are Diane and Craig?
If rain falls today, that is an example of A. weather B. climate C. flooding D. resources
PLZ HELP!! I REWARD BRAINLIEST. plz no silly answers i grinded for these points
A agent of receive the 10 percent commission on selling price of house, if the selling price of a house B 10000000 find the actual price of a house after commis
10^1 = a- 1 b- 10 c- 1/10 d- -10
What is the definition of supercalifragilisticexpialidocious.
Why do you think artists often choose a symbolic approach to their artwork?
what is the value of positive role models?​
What is the relationship between two variables if the product of the variables is constant?
What major life events happened to pablo Picasso?. Anyone knows