I am creating a game and it askes the user to guess a number from 1 and 100 and to get it right.
I am not sure how to address the actual random number, for example when the user guesses I will tell them whether or not it was too low or too high but I dont know how to address the actual random number
Code:
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#define MAX 100
int main()
{
int guess=0, numGames=0, done=0
float avg=0;
srand( (int) time(NULL));
printf("you are guessing a number between 1 and 100\n");
printf("type in your number\n");
scanf("%d", &guess);
return 0;
}