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

Explain how chemotherapy aggravates the effects of leukemia.
Whats the answer??? And how do i solve it!
According to Article II of the Constitution, the president can make treaties, recommend legislation, and grant pardons.
what does it mean that a hypothesis must be falsifiable in order to be valid ​
Which elements of the story suggest that it is an earth diver creation story?​
What mass of Cu(s) would be produced if 0.40 mol of Cu2O(s) was reduced completely with excess H2(g) ?
Which value for y makes the sentence true? 8 - y = 9 - 3
Create equations to solve for missing angles may be hard for me to solve. Need help on this!!​
what does kipling mean when he says the white mans burden is to seek anothers profit
Factor by grouping. a2 + 2ab – 24b2 (a + 6b)(a + 4b) (a – 6)(a + 4b) (a + 6b)(a – 4b) (a – 6b)(a – 4b)