The program was a little tricky at the beginning, I needed to add a library named:
#include <stdlib.h>
To generate the number the command:
“Variable” = rand() % 100 + 1;
This command can be used for bigger number just by increasing the size.
Here is the code and the program running without errors.
Guess Game #WSQ06 by miguelbriseo is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.