write an algorithm to check if the given number is odd or even.
Answers
Answered by
1
Hello,
All those words which are a multiple of 2 will be even such as 2,4,42,34,98....
All the words except even no are odd
or
Add 1 to a even no & u will get an odd no
Such as 3,5,7,9....
I hope u understood mark me brainliest
Answered by
0
Answer:
1. Algorithm. Algorithm of 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.
Similar questions