Get the algorithm working first. THEN worry about making it a function.
If you want to through the number forwards with your example of 98765432, then your loop has to do this
98765432 /...
Type: Posts; User: c99tutorial
Get the algorithm working first. THEN worry about making it a function.
If you want to through the number forwards with your example of 98765432, then your loop has to do this
98765432 /...
For this kind of thing it helps me to think of a simple example. Say the number is called num and is 123456. How do you get the individual digits? Getting the 6 is easy: just do num % 10. How about...