Programming/Questions
인텔 면접에 나와 유명해졌다는 문제
halatha
2009. 5. 21. 14:46
출처: http://lohengrin.egloos.com/1907690
Find three ways to change one character in the following code so that the resulting
code will print exactly 20 minus signs
Remember: for each solution you can only change "one" character from this original code:
int i, n=20;
for(i =0 ; i < n ; i--)
printf("-");
Find three ways to change one character in the following code so that the resulting
code will print exactly 20 minus signs
Remember: for each solution you can only change "one" character from this original code:
int i, n=20;
for(i =0 ; i < n ; i--)
printf("-");