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

help solve this plssss
Use this medieval illustration to answer the following question: A colored manuscript page depicting several layers of society. At the top are the clergy and th
Find the slope of the line. A. -2 B. -1/2 C. 1/2 D. 2
Which detail is included in the passage but not in the image? members of the crowd lying dead on the ground, the location of the conflict on King Street,
I need to know if these answers are right
PLEASE HELP ASAP!!! CORRECT ANSWERS ONLY PLEASE!!! Over what interval is the growth rate of the function increasing?
Peter has $4.80 in his piggy bank, consisting of dimes and quarters. If there are 33 coins in all, how many of each does he have?
What are the biggest differences between monks and nuns in Hinduism and Buddhism?
can someone help me with this one
how do I find measurements of angle 1-5?