노무현 전 대통령 서거 추모글 남기기 독도 광고 모금 캠페인

BLOG main image
-_-v's Blog
좋은 블로그

                               


Intel 면접 문제라고 하는 군요
진짜인지 아닌지는 모르겠지만 재밌는 문제인 것 같아 가져와봤습니다.

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("-");


세 개 찾고 나니 나름 뿌듯하네요.


저작자 표시 비영리
크리에이티브 커먼즈 라이선스
Creative Commons License


TAG
1 2 3 4 5  ... 196 

카테고리

분류 전체보기 (196)
class CKnowledge (39)
Class CPproject (9)
class CFavorite (12)
class CReview (42)
class CMonologue (89)
class CRomance (4)

달력

«   2009/07   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31