- include <stdio.h>
- include <stdlib.h>
- include <time.h>
int main(int argc, char *argv[])
{int nombreMystere = 0;
const int MAX = 1000;
const int MIN = 1
[!]int nombretaper = 0;
srand(time(NULL));
nombreMystere = (rand() % (MAX - MIN + 1)) + MIN;
}
while ( nombretaper != nombreMystere)
{
printf("tapez un nombre entre 1 et 1000\n\n");
scanf("%d", &nombretaper);
}
if (nombreMystere = nombretaper)
{
printf("vous avez trouver le nombre mystere\n\n");
}
else if ( nombretaper > nombreMystere)
{
printf("faux essaye encore c'est -\n\n");
}
else
{
printf("essaye encore c'est +\n\n");
}
je ne cherche pas la suite du programme juste pk mon int est faux là? ( au [!])