hi ppl i have a simple question, i'm starting to learn C and i spotted this problem . my program after any command that i input just exits, and it's very annoying to just restart the whole program. i'll put here the source code(it's far from finished but the start and end are there) so that you can easily tell me what to put and where to put exactly:

#include <stdio.h>

#include <stdlib.h>

int main(int argc, char *argv[])

{

int x;

int CErnesto;

int CZeManel;

int Andre;

int Angelo;

int Diogo;

int Ernani;

int Jorge;

int Rui;

int Sergio;

int Tiago;

int Bruno;

int Filipa;

int Filipe;

int Lara;

int Mafalda;

int SofiaE;

int SofiaP;

int Susana;

int EquipaGolfinho;

int EquipaLeao;

int Ajuda;

CErnesto=1;

CZeManel=2;

Andre=3;

Angelo=4;

Diogo=5;

Ernani=6;

Jorge=7;

Rui=8;

Sergio=9;

Tiago=10;

Bruno=11;

Filipa=12;

Filipe=13;

Lara=14;

Mafalda=15;

SofiaE=16;

SofiaP=17;

Susana=18;

EquipaGolfinho=19;

EquipaLeao=20;

Ajuda=118;

printf(" Introduza o numero correspondente a informacao que pretende ou\npressione 118 para ajuda com os numeros correspndentes: ");

scanf( "%d", &x );

if (x==Ajuda)

{

printf("\nCErnesto=1\nCZeManel=2\nAndre=3\nAngelo= 4\nDiogo=5\nErnani=6\nJorge=7\nRui=8\nSergio=9\nTi ago=10\nBruno=11\nFilipa=12\nFilipe=13\nLara=14\nM afalda=15\nSofiaE=16\nSofiaP=17\nSusana=18\nEquipa Golfinho=19\nEquipaLeao=20\n\n");

}

if (x==Diogo)

{

printf("Nome completo: Diogo Alexandre Nasceu a: 22/12/1987 \nTotem: Preguica Preguicosa\n");

system("PAUSE");

}

else

system("PAUSE");

}

it's just that, for the moment. please i'd appreciate some help as as far that i know it's very simple, but i just can't reach it....i've tried some switch and loops but i don't know exacly what to put nor where...

Thanks