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

I am actually in 4th grade but anyway I need see ​
PLZ PLZ PLZ ANSWER THIS QUESTION!!!!!!!
Find the value of x for the triangle 60 X 30
Find the missing side of this right triangle. 17 X 15 x=
Although Leonardo da Vinci is most famous for his paintings, he was also a prolific drawer, What is one of his best-known drawings? A.Vitruvian Man B.The Last S
What is the speed of a vehicle that travels 50 meters in 5 seconds m/s
Based on details from the text, with which statement would the authors MOST LIKELY agree? SELECT AN ANSWER Racism can be found in only some parts of the US. Rac
3. As a student, what product from the fiber of trees do you benefit directly?1 LumberB PapeC. Turpentine D. Fruit4.How do tress help maintain ecologocal balanc
quation in slope-intero y + 5 = -6 (x + 7)
Redacte una composición tema libre y de ella extraiga 5 palabras Agudas, 5 Llanas y tres esdrújulas. Sepárenlas en sílabas y diga si alguna de las palabras form