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

How many cubes would it take to make a model of a rectangular prism that is 3 units long* 2 units wide* 4 units high?
help pls! ill give points
The perimeter formula for a rectangle is 2l + 2w, where l is the length and w is the width. Complete the steps to find an expression that represents the perime
According to bartolomé de las casas, what factor motivated the colonists treatment for the natives
When did the United States authorize the development of the atomic bomb?
Read this passage. In this excerpt, Eliezer hears his fellow inmates at Auschwitz reciting the Kaddish, the Jewish prayer for the dead. excerpt from Night by E
The coefficient in 5m +8 is 8 true or false
in an algebra 2 test and I'm stumped
what is the answer to y=3x-2
We know that “Knowledge based systems” or “Expert systems” are the most common type of CDSS in routine clinical use. Please explain any three areas of health ca