coinflip.c: Change flips to be unsigned (becuase I don't care)
This commit is contained in:
parent
1a600f3a13
commit
64840bf4fd
@ -10,7 +10,7 @@ int main() {
|
||||
char rawInput[19];
|
||||
fgets(rawInput, 19, stdin);
|
||||
printf("rawInput = %s\n", rawInput);
|
||||
long int flips = strtol(rawInput, NULL, 0);
|
||||
unsigned long int flips = strtol(rawInput, NULL, 0);
|
||||
printf("Ok, flipping %li times!\n", flips);
|
||||
|
||||
long int headsCount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user