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

Using South African examples, write a critical essay on gender and the work/life interface with reference to: a) The culture of long working hours; b) paid and
Why did people from the Appalachian Mountains settle in the Ozark Mountains 1 point
The patient is severely injured in an accident but does not feel the pain until several hours afterward. Which type of hormone reduced the patient's sense of pa
Find the value of the variable
7.1×10^25 atom of lithium calculate the number of moles .
Can you guys please answer this for me
Length=4cmbreadth=3cmWhat is a volume????​
HELPPPPPPPPPP PLEASEEEEEEEE!!!!!!
Answers for question 65 and 66
R N Q 45 45 9. ZQZR is a straight angle. What is the measure of OZS? ABCDE A. 45 B. C. D. S E. 60° 90° 125° 135°how to solve this?​