Draw the flow chart to find if a given number is divisible by 2 or not
Answers
Answer:
Step-by-step explanation:
no which have 0,2,4,6,8 in end are divisble by 2
Numbers, ending with 0,2,4,6,8 are divisible by 2.
The steps to check this would be :
1) Take the number
2) Remove all the digits except unit place.
3) Check if the remaining digit is 0, if yes then number is divisible by 2 otherwise move forward
4) Check if the remaining digit is 2, if yes then number is divisible by 2 otherwise move forward
5) Check if the remaining digit is 4, if yes then number is divisible by 2 otherwise move forward
6) Check if the remaining digit is 6, if yes then number is divisible by 2 otherwise move forward
7) Check if the remaining digit is 8, if yes then number is divisible by 2 otherwise it's not.
With thes steps, you can easily make the flow chart