Search:

Type: Posts; User: c99tutorial

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    5,317

    Get the algorithm working first. THEN worry about...

    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 /...
  2. Replies
    12
    Views
    5,317

    For this kind of thing it helps me to think of a...

    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...
Results 1 to 2 of 2