Computer Science, asked by saumyagautam673, 2 months ago

4. Following Algorithm checks whether the given number is even or odd. But the
steps are jumbled. So read the sentence and click on its correct number in
Algorithm. *
1
2
3
5
Divide the
number by 2
and get the
remainder.
o
O
Read the
number
Print Even
O
O
Check if the
remainder is 0
o o
O
or not.
Else print Odd.
O​

Answers

Answered by purnapushkalam1991
0

Explanation:

1) Read the number

2) Divide the number by 2 and get the remainder

3) Check if the remainder is zero

4) Print Even

5) or not

6) Else print odd

Similar questions