Search:

Type: Posts; User: robwhit

Search: Search took 0.02 seconds.

  1. Replies
    15
    Views
    9,380

    rand () % 10 gives values from 0-9. gcc -Wall...

    rand () % 10 gives values from 0-9.

    gcc -Wall -Werror -ansi -pedantic code.c
  2. Replies
    15
    Views
    9,380

    Perhaps make the number in a smaller range so...

    Perhaps make the number in a smaller range so that somebody can actually guess it. If you guess it, the getchar doesn't pause the program because it gets the newline entered from the previous scanf.
Results 1 to 2 of 2