Search:

Type: Posts; User: scatterice

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    5,426

    I think I would enter dat % 10 to get the 1st...

    I think I would enter dat % 10 to get the 1st digit. (dat * .1) % 10 to get the 2nd digit and so on. Then do I use "if" to see what digit it is? After I get the digit, how would I put it back in...
  2. Replies
    7
    Views
    5,426

    Counting number of digits?

    int dat;

    printf( "\nEnter an int: " );
    scanf( "%d", &dat );

    printf( "\nThe counts of digits:\n0 %d\n"
    "1 %d\n"
    "2 %d\n"
    "3 %d\n"
    "4 ...
  3. Replies
    1
    Views
    1,088

    How do you make calls?

    It asked to write a function displayDigit() that will ask the user for an integer. The function will then print out the 1-digit, 10-digit, and 100-digit. The function will also print the average
    of...
Results 1 to 3 of 3