#include <stdio.h>
#include <stdlib.h>
intGame (int in, int num);
int main()
{
printf("I have a number between 1 and 1000\nCan you guess my number?\nPlease type your first guess\n"
intGame (int in, int num);
return 0;
}
void intGame (int in, int num);
{
scanf("%d", &in);
num = 1+(rand ( ) % 1000)
if (in!=num);
{
if(in>num);
{
printf("Too low Try again\n");
scanf("%d", &in);
} else if(in<num) {
printf(Too high. Try again\n");
scanf("%d", &in);
}
} else printf("Excellent! You guessed the number!\nWould you like to play again (y or no)?\n");
}