surakshyasubedi9
surakshyasubedi9 surakshyasubedi9
  • 06-10-2021
  • Computers and Technology
contestada

qbasic program to check whether the given number is odd or even​

Respuesta :

discipulus
discipulus discipulus
  • 06-10-2021

Answer:

CLS

INPUT "Enter a Number: ", n

IF n MOD 2 = 0 THEN

PRINT "Input Number is Even"

END IF

IF n MOD 2 = 1 THEN

PRINT "Input Number is Odd"

END IF

END

Answer Link
prasamsharayamajhi
prasamsharayamajhi prasamsharayamajhi
  • 06-10-2021

Explanation:

CLS

INPUT "Enter a number:",N

IF N MOD 2=0 THEN

PRINT "given number is even"

ELSE

PRINT"given number is odd"

END IF

END

Answer Link

Otras preguntas

pH of 6.7X10^-4 of H2SO4
round 4.25 to the nearest one decimal place
explain why the oil floats after the stirring stops?
Which causes strep throat, anthrax, and tetanus?
what is the difference between work and power
Which of the following is not true about Aborigine culture? (1 point) A. It is the oldest surviving culture on Earth. B.Traditional Aborigine societies formed a
Can someone pls answer these questions thks ok 1 . a cylinder whose diameter is 6 cm and whose height is 4 cm then find its volume 11 . a cube whose edge is 3.
The surface area of a die is 600 mm squared. What is the volume of the die?
a reward that follows an action is called a.human relations b.self talk c.risk-taking d.reinforcements
The book: giver Why does Jonas’s mother discourage Lily from becoming a Birthmother? A. Giving birth is dangerous, and Lily might die from the complications B.