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

What is a group of organisms that look alike and can reproduce among their selfs ?
sam cut a pie into equal parts.There are 3 slices left.The angle measures for 3 slices is 72.how many slices did he cut?
What sorts of signals does the brain use to communicate sensations, thoughts and actions?
What is a series of events that cells go through as they grow and divide
Graph the line using intercepts: 4x-3y=12
what is the simplest square root of 1345? no decimals please
the area of a triangle is 41 yards to the second power with a base of 5 yard what is the height in yard
why can parents who are heterozygous for type a and type b blood have children with any of the four human blood types?
when we look at a leaf, we see the colors of light that are reflected off its surface. how does the relatively low flow of oxygen in green light?
a soccer team played 160 games and won 65% of them. how many did they win?