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

I NEED HELP WITH THIS PLS ASAP!!!
Which of the equations below could be the equation of this parabola? (0,0) Vertex O A. y = 2x2 B. x = -2y2 O c. x = 2y2 O D. y= -2
Plzzzzz i need help!!!!!
how to find rate of reaction experimentally of the reaction ? plz help
Brainliest for correct answer, any inapplicable answer or absurd answer will be deleted and reported.
Lines 136–152: What conflict arises between Mother and Mr. Weems? How is the conflict resolved, and how does this resolution affect Tom?
Hi 123-123+123+123=????
What are the properties of directed line segments?
A line passes through the points (-100,-9.5•10^3) and (300,3.05•10^4). Find the value of y when x =200. Write answer in scientific notation.Please help asap wit
Please helpppp: Photosynthesis occurs mostly in the______of a plant.
good job