flowchart to determine weather a given number is odd or even
Answers
Answered by
3
Answer:
Now the next step in algorithm (i.e number%2==0), in this step (number%2) returns the remainder after dividing number by 2. Now the next step (remainder==0) simply checks if the remainder value is equal to 0 or not. So if the remainder is 0, then the number is said to be Even number else it is said to be an Odd Number.
Attachments:
Similar questions