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

Answers

Answer 1

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 2

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


Related Questions

did someone actually hang themselves on the wizard of oz set

Answers

No - its a rumour started since the films 50th anniversary in 1989.

This type of cable is used to connect the keyboard and mouse to the computer:

PS/2 cable
Ethernet cable
HDMI cable
DVI cable​

Answers

Answer:

I'm going to have to go with PS/2 cable

Explanation:

did some research

it's the ps/2 cable

ethernet cables are for wifi

hdmi connects computer to the monitor

dvi connects to an older type of monitor

Other Questions
what statements are always true about limiting reactants? A survey asked 50 students if they play an instrument and if they are in band.1.25 students play an instrument.2. 20 students are in band.3. 30 students are not in band.Which table shows these data correctly entered in a two-way frequency table? reason for climate change and global warming Ed receives a tax refund of 37.50. He spends 2/3 of his refund on clothing. He divides the rest among his 5 children. How much money does he give each child? someone please help me !! I'll give brainliest :D CHAPTER IITHE SHE-WOLF, an excerptFrom White FangBy Jack LondonBreakfast eaten and the slim camp-outfit lashed to the sled, the men turned their backs on the cheery fire and launched out into the darkness. At once began to rise the cries that were fiercely sadcries that called through the darkness and cold to one another and answered back. Conversation ceased. Daylight came at nine o'clock. At midday the sky to the south warmed to rose-colour, and marked where the bulge of the earth intervened between the meridian sun and the northern world. But the rose-colour swiftly faded. The grey light of day that remained lasted until three o'clock, when it, too, faded, and the pall of the Arctic night descended upon the lone and silent land.As darkness came on, the hunting-cries to right and left and rear drew closerso close that more than once they sent surges of fear through the toiling dogs, throwing them into short-lived panics.At the conclusion of one such panic, when he and Henry had got the dogs back in the traces, Bill said:"I wisht they'd strike game somewheres, an' go away an' leave us alone.""They do get on the nerves horrible," Henry sympathized.They spoke no more until camp was made.What do the details about the length of the Arctic day add to the story? Please respond in three to five complete sentences, including specific lines from the excerpt to support your answer. en tus palabras q significa la expresion 'perdido en sus sueos' Which statement best describes the role of the setting in the passage? 2 A The setting highlights the nightmare-like experience of the driver. B The setting emphasizes the difference between the narrator and the driver. The setting creates a terrifying atmosphere surrounding the journey. D The setting reveals how the narrator feels about his journey I need the answers, fast! if f(x)=4x-2/3 what would f(a+3) be i need quick help please!! giving brainliest. c: what is the difference between reproducibility and repeatability if an inelastic collision takes place, during the collision, what is conserved? I don't understand this question can someone help me with this please, please explain!! and thank you for the help!! If u dont know try your best :D Hello, i'm looking for someone to help me with my missing math hw? Solve for m:2 (m + 7) = -4- mYour answer 17. Solve the following equation. (1 point)3(y 5) + 2 = 5Oy=4Oy=7Oy= 4Oy=6 How many soldiers returned to France after the campaign in Russia? Approximately how many were lost? Please help!! due soon!!im having trouble with a discussion for my classDevon is having difficulty determining if the relation given in an input-output table is a function.Marco explains to him that in order to tell if the relation in the table is a function, Devon needs to check if any output values are reported. If they repeat and have different input values, the relation is not a function.INSTRUCTIONSIf Marco is correct, respond to the following statement:-Summarize Marcos reasoning in your own wordsIf Marco is incorrect, respond to the following statement:-Explain what is wrong with Marcos reasoning and provide an example of a function.please help!!!!! what was Sparta's government? A certain medication is available only in 400 g tablets. If the patient needs to take 2.4 mg per day, how many tablets must she take? Help me please. SIMPLIFY YOUR ANSWER. Expert only.