Q2. Write Algorithm to input a number and check if it is even or odd
please answer fast it's urgent
Answers
Answered by
1
Explanation:
The algorithm is a step by step representation of program.
First of all you should know that.
If the number is divisible by 2, means the remainder is 0 then the number is even. ...
Algorithm.
Step 1- Start the program.
Step 2- Read / input the number.
Step 3- if n%2==0 then number is even.
Step 4- else number is odd.
Similar questions