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

Find the value of x need help
Francesca is painting a picture of the purple flowers in her garden. She mixes paint to make the perfect color for each type of flower. For the daisies, she mix
The formula below represents the standard form of a quadratic equation, ax2 + b + c = 0 Solve for b.
Two squares are congruent if and only if: A. any two corresponding angles are congruent B. two pairs of corresponding angles are congruent C. all four pairs of
Find the following verses in the Book of Psalms. Study the verses and write the synthetic parallel that the verses use. Psalm 1:1–2
Find the circumference of a circle with a radius of 8 mm.​
can anyone help me pls
C. Minh and Mikayla are selling wrapping paper for a school fund-raiser. Customers can buy either packages of folded paper or rolls of paper. Minh sold 6 rolls
need help worth loads of points
Rank the Enlightenment ideas (Feminism, Religious Freedom, Government and Law, Natural Rights, and Social Contract) from 1-5, 1=most - 5=least. Consider which i