An integer is divisible by 9 if the sum of its digits is divisible by 9. use this idea to write a program to determine whether a given integer is divisible by 9 and its sum of digits is divisible by 9 also ( using do.... while loop)
Can any one help me in These question c program
Collapse
X
-
Please refer to the forum's rules regarding Posting Homework or Coursework Questions and Answers. We are not allowed to do your homework for you. Our role is to help you with specific errors or roadblocks you encounter after you try to write a program.
I will give you a hint. The problem statement asks you to compute the sum of the digits of a given integer. Step 1 (after you have the given integer) is to extract each of its digits so you can add them together.
Comment