samedi 7 février 2015

What is the error in this C language coding , On execution it just takes one or two input and then terminates by itself


include


include


int main(void) { int array[50]; int i; int total=0;



for(i=0; i<=9; i++)
{
printf("Enter value");
scanf("%d",array[i]);
total+=array[i];
}
printf("%d",total);


getch();


}





Aucun commentaire:

Enregistrer un commentaire