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

Create a Horse table with the following columns, data types, and constraints: ID - integer with range 0 to 65 thousand, auto increment, primary key RegisteredNa
help pls i dont get it ​
If < A and < B form a linear pair, and m< A = x - 21 degrees, and m< B = x + 15 degrees, then find x.
coronavirus disease is an infectious disease tag question
I feel as if the one I chose it right but I’m not sure, can someone confirm for me.
Who did I give it to? is this correct english grammar true or false ​
Alice has to move around a lot to fetch objects at her workstation. Which ergonomic principle should Alice follow to prevent strain?'
Question 14 of 20 Read this excerpt from The Grapes of Wrath Some of the owner men were kind because they hated what they had to do, and some of them were angry
Cells are surrounded and protected by. it's multiple-choice to fill in the blank. Here's the list of them. Lipids Nucleic Acids Carbohydrates Proteins
Find m, given that the three angles of a triangle are (m+18), (2m+28) and (3m+47).