oforipadmore6 oforipadmore6
  • 10-02-2021
  • Computers and Technology
contestada

Write an algorithm to show whether a given number is even or odd.

Respuesta :

soph221
soph221 soph221
  • 10-02-2021
Answer:
Step 1: Start
Step 2: Take any number and store it in n
Step 3: if n=multiple of 2 print "even" else print "odd"
Step 4: Stop
Explanation:
If the number is dividable or a multiple of 2, the number is even. If it's not the number is odd
Answer Link

Otras preguntas

John locke, baron de montesquieu, and jean jacques Rousseau all were A) advocated american independence B) French Enlightenment philosophers C) proponents of
Where does diffusion of oxygen and carbon dioxide take place in the lungs? a. alveoli and capillaries b. bronchi and thorax c. cilia and pleura d. epiglotti
What event in 1911 focused attention on the need to protect factory workers?
Factor -3bk 2 + 9bk - 6b
What number can multiply to 8 but add up to 12
The paralyzing disease that President Roosevelt had
Convert the mixed number 3¼ to a percent. A. 314% B. 333% C. 375% D. 325%
On a scale drawing with a scale of 1cm=0.75m the height of a tree is 6.5 cm how tall is the actual tree?
what are the next four multiples of the unit fraction 1/2
Which words in the sentence are the adverb clause? As she drank her lemonade, Alyssa played a board game with her family. a. with her family b. As she drank he