coinflip.c: Change flips to be unsigned (becuase I don't care)

This commit is contained in:
BBaoVanC 2020-11-20 11:32:04 -06:00
parent 1a600f3a13
commit 64840bf4fd
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -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;