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

Choose the correct answer for the amount of interest earned in the following simple interest problem. A deposit of $4,000 at 9.5% for 270 days A. $280.00 B. $28
The graph of a system of equations with different slopes will have no solution
Suppose A and B are dependent events. If P(A|B)=0.25 and P(B)=0.6 , what is P(AuB) ?
Compare and contrast the military and political structure of the hittites and the assyrians
i need help with this !!
In the _____ leader behavior, the leader supplements his or her directing with support and encouragement to protect the confidence levels of the employees.
Serena has grown up hearing her parents talk about their views on immigration and often observed their support for politicians embracing immigration reform. whe
Appliances at discount city are on sale for 70% of original price. Eli has a coupon for an 18% discount on the sale price. If the original price of microwave ov
Acids produce ___ ions when dissolved in water. acids react with many ___ to produce ___ gas.
Retelling a story from another characters perspective