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

1/3(9x+27)-4=1/2(2x+54)
how do you solve 4a/b divided by 2ac/b
How many magnesium ions are present in 5.36 x 10-4 mol of magnesium iodide?
the student council president wants to find out the opinion of the students on the issue of school lunch options. The president sends out a survey to a random
What is the value of 1-18+25 if you subtract then add? If you add then subtract?Why is order of operations necessary?
If Olivia and Shawn have another child, which of the following genotypes is possible for the child? A. Mm only B. MM only C. MM or mm only D. MM, Mm, or mm
Who was Malinche and what other name was she called?
Is 0.127 a rational number
What is the GCF of 80x3 and 30yx2??? (The 3and2 are exponets)
Find the original cost of a rocker selling for $159.95 at 20% off.