1.

Write an algorithm to find whether a given number is odd or even.​

Answer»

START Step 1 → Take integer variable A Step 2 → ASSIGN value to the variable Step 3PERFORM 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.



Discussion

No Comment Found