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

Name the property illustrated by the statement. 31.) If x + 9=2, then x+9-9+2-9
factor 36m^3-6m^2p^2-6mp+p^3
what is 25,344 divided by 5,280
It costs you $1.96 for four pounds of bananas. Write and solve an equation to find the cost of one pound of bananas.
There was 2/3 of pan of lasagna in the refrigerator. Bill and his friends ate half of what was left. Write a number sentence and draw a model to represent the p
A console game, ZOMBIES!, has come out recently. It sells for $60. Which of these might lower the price of the game? a)A negative article about the game from a
whats the answer to 0.952 x 115
Lisa makes a cherry pie and an apple pie. She cuts the cherry pie into six equal wedges and she cuts the apple pie into eight equal wedges. How many degrees gre
Whose discovery of radium changed the world's view of the atom? a. Albert Einstein c. Friedrich von Bernhardi b. Marie Curie d. Houston Stewart Chamberlain
Paraphrasing: 'Only armchair politicians are immune from committing mistakes.Errors are inherent in political action.Those who are in the centre of political s