midra wrote:I get Output Limit Exceeded
WHY???
here is my code:
[c][...]
while(scanf("%c",&c)!=NULL)
[/c]
scanf returns the number of items assigned or EOF. Check against 1 (since you are reading only one character) or EOF.
After the first line you start with i=2.midra wrote:[c][...]
i=1;
}
i++;
}[/c]
So you are printing 1 char in excess for every line after the first.
Ciao!!!
Claudio