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("-");
: 인텔 개발자 인터뷰에서 나온 문제랍니다!^^ 자신은 과연 몇 개나 생각했나요?ㅋ
출처: http://theeye.pe.kr/
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("-");
: 인텔 개발자 인터뷰에서 나온 문제랍니다!^^ 자신은 과연 몇 개나 생각했나요?ㅋ
more..
출처: http://theeye.pe.kr/
Trackback
Trackback Address :: http://www.nohungry.net/tt1/trackback/130

Comments
난 두개~ 으앗.... 첫번째 걸 놓치다니.... -_-