Computer Science, asked by quansahesther77, 2 months ago

write an algorithm to find whether a given number
is even or odd

Answers

Answered by lekshmipshine
2

Answer:

.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

Answered by Anonymous
3

Answer:

Algorithm this program is very easy :

START ↦

Step 1 → Take integer variable A

Step 2 → Assign value to the variable

Step 3 → Perform A modulo 2 and check result if output is 0

Step 4 → If true print A is even

Step 5 → If false print A is odd STOP.

↦Flow Diagram.

↦Implementation.

↦Output.

Similar questions