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

In microsoft cortana, which icon allows you to specify what appears in the home view and search results as a whole?
What are the 3 occasions when a client is unable to give informed consent for treatment?
What was the difference between presidential and congressional reconstruction plans
What caused european cities to grow around the year 1000?
what points are the solution???
A nine-year-old child suddenly collapses in the hallway. The nurse finds a child and determines the child is in cardiac arrest and begin CPR. The nurse activate
When migrating to be united states durin the 1840s,irish immigrants primarily sought rural location.?
If the mass of an object is decreased, its gravitational force will _____. 1. decrease 2. decrease by the distance squared 3. increase 4. increase by the dist
Write equations for the horizontal and vertical lines passing through the point (-8,8)
Seafloor spreading is driven by volcanic activity ________.