hello, guys! First of im complete newbie in programming in general and i'm very glad that i found this wonderful site, which really helps me to polish my programming skills!
so i came to this first problem and i tried to submit this code
include
int main(void) {
int n;
while (1) {
scanf ("%d",&n);
if (n != 42)
printf("%d",n); else break;
}
return (0);
}
it gives me same output as in noix'es solution (i use NetBeans 6.91 IDE), but for some reason SPOJ says wrong answer - im mad confused, any help?