Chciałem zbudowac program ktory wczytuje liczby az nie wpisze 0, jednak nie wiem dlaczego on nie dziala. Pomoze ktos?
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int tablica[4];
int x;
while(tablica[x]!=0) {
printf("Podaj liczbe %d: ",x);
scanf("%d",&tablica[x++]);
}
return 0;
}