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

A regular hexagon has a perimeter of 12 X +60. Which expression represents the length of each side of the hexagon?
Nutritional needs can best be described as through life.
The redemption of the Mariner occurs when he
Some of the world's most fertile soil is found near _____. beaches sand dunes mountain ranges volcanoes
what is 26/39 in its simplest form
Part 5: Common Core Practice What is the best name that describes all the figures below? Lesson 32
True or false Personal action plans should not be flexible and cannot be modified.
The kinetic energy of all the particles in a given sample of matter is the same. a. True b. False
list 3 ways that scientists investigate and learn about the natural world?
Advertising or promoting the use of tobacco to adolescents is prohibited