hello,
I'm a beginner in c programming and i want you to help me to complete my little console game which is a famous game " guess the number" here is my code :
Code:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <conio.h>
void  main()
 {

    int N,x,essai,T,i,;


    printf(" veillez choisir entre le mode machine (1) ou le mode joueur  tapez 1 pour le mode machine \n ");

    scanf("%d:\n",&T);




   randomize(); // initialisation de rand
if(T==1)
{
   N = rand()%100;
   printf(" joueur : devinez le nombre N compris entre 0 et 100\n ");
}
else
{
printf(" joueur 1 : veillez saisir un nombre compris entre 0 et 100\n");

scanf("%d:\n",&N);

printf(" joueur 2: devinez le nombre N compris entre 0 et 100\n ");

clrscr();
}
   essai=1;





   scanf("%d:\n",&x);

           while(x!=N && essai<=10)

             {
                 if(x<N)
                 {
                     printf("x<N:\n");
                 }
                 else
                 {
                  printf("x>N:\n");
                 }

                     printf("Nouvel essai joueur\n");

                scanf("%d:\n",&x);

                      essai++ ;

             }

          if(essai<=10)
          {
             printf("\n bravo, vous avez pu deviner le nombre en %d essais",essai);
          }
       else
       {
             printf("dsl , vous avez échoué à l'épreuve, bonne chance la prochaine fois");
       }




   getch();
 }
now i want to add a score sorting depending on the number of " essai ", with just using a tables .
so if any one can help me i will be Grateful.
Thank you in advance.