Question: Write a python program, that will be able to determine whether a number is divisible by 3 by adding all of its digits. Limitation: 1.

 Write a python program, that will be able to determine whether

Write a python program, that will be able to determine whether a number is divisible by 3 by adding all of its digits. Limitation: 1. Do not use string manipulation. 2. Use only basic arithmetic operators and control structures. 3. Treat the number as an integer only. Example Enter number: 4567090921810 Divisible by 3 Process Demo 4567090921812 4+5+6+7+0+9+0+9+2+1+8+1+2 - 54 514-9 When the number became a single digit, check if it is 3, 6 or 9. If it is, the number is divisible by 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!