algorithm to find a number divisible by 2 or not
Answers
Answered by
3
Answer:
- Start.
- Start.Input n, 2.
- Start.Input n, 2.Calculate if (n%2==0) then is divisible else not divisible.
- Start.Input n, 2.Calculate if (n%2==0) then is divisible else not divisible.Output number is divisible or not.
- Start.Input n, 2.Calculate if (n%2==0) then is divisible else not divisible.Output number is divisible or not.Stop.
hope it helps you...
Similar questions