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

Find the upper quartile for the following data set: 7,9,13,4,18,3,9,10,15,8,2,6,9 A. 7.5 B. 6.5 C. 9 D. 5 E. 11.5
If n represents a number, then write an expression for three times the difference of the number and six increased by four times the number
What are the rights of the accused
What is the missing term? Please help me!
Describe each of the three categories that money is generally placed in. Include an example of each. (4 points) Subject is (Economic)
What's the diameter of a circle with area 225π units2? A) 15 units B) 225 units C) 30 units D) 112.5 units
If p/q=q/r then prove that p3+q3+r3=(1/p3+1/q3+1/r3)p2q2r2​
can someone help me with this??
How hawk and chicken game helps you physically fit
write as a product of two polynomials. (x-y)^2-a(y-x)