An integer n is divisible by 9 if the sum of its digits is divisible by 9.
Fantastic news! We've Found the answer you've been seeking!
Question:
An integer n is divisible by 9 if the sum of its digits is divisible by 9. Develop a program to display each digit,starting with the rightmost digit. Your program should also determine whether or not the number is divisible by 9. Test it on the following numbers
n=154368
n=621594
n=123456
Related Book For
Discrete Mathematics and Its Applications
ISBN: 978-0073383095
7th edition
Authors: Kenneth H. Rosen
Posted Date: