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

The formula c=3.14 can be used
State two reasons why accumulation of lactic acid leads to increase in heartbeat
A sample of small bottles and their contents has the following weights (in grams): 4,1,5,4,5,7, and 6. What is the sample variance of bottle weight?
A math class has a total of 41 students. The number of females is 9 less than the number of males. How many males and females are in the class?
v = u + at u = 2 a = -5 t = 1/2
Dmitris is in a car accident and his parietal lobe is injured. Which of the following is the most likely behavioral effect of his accident? a. no sensation in h
Complete the square and graph: 4y^2+x+8y+1=0
In the broken windows theory broken windows refers to what police personnel, crimes or residents
is this the correct graphing for the inequality 2c<=100? i’ll mark brainliest please help!!!
Please help ASAP!!!!! In △MNK MN = NK, m∠N = 110º, MK = 5. Find MN.