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

The time units used by scientists to divide Earth's history are part of the A. geologic time scale. B. 360° latitude. C. 24-hour model. D. 180° longitude.
Which sentence best describes clustering? A. You're generating words that suggest possible themes for an essay. B. You're generating words that suggest possible
Can you Name 0.00015
What states of matter are present at the melting point
If f(x) = 5x 40, what is f(x) when x = –5?
Locate the infintive and determine how it is used. She got up to leave. Noun Adjective Adverb
the school bus stops at randys house at 8:15 AM randy arrived at the bus stop a quarter after 8 did rany mis the bus
Which World War II event occurred first? The United States dropped two atomic bombs on Japan. President Harry Truman was sworn in to office.
Air is warmed and moisten as it moves through both the mouth and nasal passages. a. True b. False
In a recent NFL game, the Green Bay Packers scored 14 points less than the tennessee titans. Write and solve an equation to find the total points the Tennessee