This is my first script in C it makes a litle game I like to call gess th number.
this script is basic and all you need to compile and play but try to mod it to your own likes.
int main (int argc, char ** argv)
int mysterieNumber = 0 , numberEntered = 0;
const int MAX = 100 , MIN = 1;
srand (time (NULL));
mysterieNumber = (srand) % (MAX – MIN + 1 )) +MIN;
printf (”what is the mysrterieNumber?”);
scanf (”%d”, numberEntered);
if (mysterieNumber > numberEntered)
printf (”it’s more!”nn”);
else if (mysterieNumber < numberEntered)
printf (”its less”nn);
printf (”well done you have found the mystery number!”nn)
}while (numberEntered != mysteryNumber);