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

Why can't plants and animals use the nitrogen directly from the atmosphere? Answer A.There is not enough of it in the air. B.Nitrogen gas contains the element i
The square root of 617 is between which two numbers?
In minks, the gene for brown fur (B) is dominant to the gene for silver fur (b). Which set of genotypes represents a cross that could produce offspring with sil
What is the value of 6P6?  A.1  B.36  C.720  D.46,656
which number is 100 less than 38 tens
how far away is all 9 planets from the sun
A rectangle has an area of 30 square units and a perimeter of 34 meters.what are the dimensions of this rectangle
how much sperm does it take to make a baby?
Hitler intended to defeat great Britain by
Why did the Chinese peasants rebel against the manchus from 1850 to 1864?