모바일 오유 바로가기
http://m.todayhumor.co.kr
분류 게시판
베스트
  • 베스트오브베스트
  • 베스트
  • 오늘의베스트
  • 유머
  • 유머자료
  • 유머글
  • 이야기
  • 자유
  • 고민
  • 연애
  • 결혼생활
  • 좋은글
  • 자랑
  • 공포
  • 멘붕
  • 사이다
  • 군대
  • 밀리터리
  • 미스터리
  • 술한잔
  • 오늘있잖아요
  • 투표인증
  • 새해
  • 이슈
  • 시사
  • 시사아카이브
  • 사회면
  • 사건사고
  • 생활
  • 패션
  • 패션착샷
  • 아동패션착샷
  • 뷰티
  • 인테리어
  • DIY
  • 요리
  • 커피&차
  • 육아
  • 법률
  • 동물
  • 지식
  • 취업정보
  • 식물
  • 다이어트
  • 의료
  • 영어
  • 맛집
  • 추천사이트
  • 해외직구
  • 취미
  • 사진
  • 사진강좌
  • 카메라
  • 만화
  • 애니메이션
  • 포니
  • 자전거
  • 자동차
  • 여행
  • 바이크
  • 민물낚시
  • 바다낚시
  • 장난감
  • 그림판
  • 학술
  • 경제
  • 역사
  • 예술
  • 과학
  • 철학
  • 심리학
  • 방송연예
  • 연예
  • 음악
  • 음악찾기
  • 악기
  • 음향기기
  • 영화
  • 다큐멘터리
  • 국내드라마
  • 해외드라마
  • 예능
  • 팟케스트
  • 방송프로그램
  • 무한도전
  • 더지니어스
  • 개그콘서트
  • 런닝맨
  • 나가수
  • 디지털
  • 컴퓨터
  • 프로그래머
  • IT
  • 안티바이러스
  • 애플
  • 안드로이드
  • 스마트폰
  • 윈도우폰
  • 심비안
  • 스포츠
  • 스포츠
  • 축구
  • 야구
  • 농구
  • 바둑
  • 야구팀
  • 삼성
  • 두산
  • NC
  • 넥센
  • 한화
  • SK
  • 기아
  • 롯데
  • LG
  • KT
  • 메이저리그
  • 일본프로야구리그
  • 게임1
  • 플래시게임
  • 게임토론방
  • 엑스박스
  • 플레이스테이션
  • 닌텐도
  • 모바일게임
  • 게임2
  • 던전앤파이터
  • 마비노기
  • 마비노기영웅전
  • 하스스톤
  • 히어로즈오브더스톰
  • gta5
  • 디아블로
  • 디아블로2
  • 피파온라인2
  • 피파온라인3
  • 워크래프트
  • 월드오브워크래프트
  • 밀리언아서
  • 월드오브탱크
  • 블레이드앤소울
  • 검은사막
  • 스타크래프트
  • 스타크래프트2
  • 베틀필드3
  • 마인크래프트
  • 데이즈
  • 문명
  • 서든어택
  • 테라
  • 아이온
  • 심시티5
  • 프리스타일풋볼
  • 스페셜포스
  • 사이퍼즈
  • 도타2
  • 메이플스토리1
  • 메이플스토리2
  • 오버워치
  • 오버워치그룹모집
  • 포켓몬고
  • 파이널판타지14
  • 배틀그라운드
  • 기타
  • 종교
  • 단어장
  • 자료창고
  • 운영
  • 공지사항
  • 오유운영
  • 게시판신청
  • 보류
  • 임시게시판
  • 메르스
  • 세월호
  • 원전사고
  • 2016리오올림픽
  • 2018평창올림픽
  • 코로나19
  • 2020도쿄올림픽
  • 게시판찾기
  • 오유인페이지
    개인차단 상태
    DJ.A님의
    개인페이지입니다
    가입 : 14-05-03
    방문 : 1321회
    닉네임변경 이력
    회원차단
    회원차단해제
    게시물ID : programmer_11739
    작성자 : DJ.A
    추천 : 4
    조회수 : 378
    IP : 49.251.***.92
    댓글 : 5개
    등록시간 : 2015/06/30 02:27:34
    http://todayhumor.com/?programmer_11739 모바일
    과제해결했습니다!!!!!
    옵션
    • 창작글
    • 본인삭제금지
    숫자를 입력받아 길이가 n인 정팔각형 출력 과제였습니다<br><br>조건은 for문'만' 사용 이었구요 (2차원배열 if문 사용금지) (아마 아직 진도도 안나갔고 if문은 꼼수가 가능해서?일지도?)<br>출력가능한 문자열은 ' ' , '*', '\n' 뿐입니다.<br><br>두시간이나 끙끙 머리를 싸매고했는데 결국 정상출력 해내어 기쁩니다.<br>조건문 초기화나 조건식 등등.... 이리저리 바꿔보고 안되면 고민해보고 2시간이 훅갔습니다.<br><br>해낸기쁨에 오유 프로그래밍게에 공유해서 피드백도 받아보고자 합니다!!<br>뭔가 고쳐야 할점이 있으면 알려주세요!!<br><br><br><div class="colorscripter-code" style="color:rgb(1,1,1);overflow:auto;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"><table class="colorscripter-code-table" style="margin:0px;padding:0px;border:;background-color:rgb(250,250,250);" cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:6px;border-right-color:rgb(229,229,229);border-right-width:2px;border-right-style:solid;"> <div style="margin:0px;padding:0px;text-align:right;color:rgb(102,102,102);line-height:130%;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <div style="line-height:130%;">1</div> <div style="line-height:130%;">2</div> <div style="line-height:130%;">3</div> <div style="line-height:130%;">4</div> <div style="line-height:130%;">5</div> <div style="line-height:130%;">6</div> <div style="line-height:130%;">7</div> <div style="line-height:130%;">8</div> <div style="line-height:130%;">9</div> <div style="line-height:130%;">10</div> <div style="line-height:130%;">11</div> <div style="line-height:130%;">12</div> <div style="line-height:130%;">13</div> <div style="line-height:130%;">14</div> <div style="line-height:130%;">15</div> <div style="line-height:130%;">16</div> <div style="line-height:130%;">17</div> <div style="line-height:130%;">18</div> <div style="line-height:130%;">19</div> <div style="line-height:130%;">20</div> <div style="line-height:130%;">21</div> <div style="line-height:130%;">22</div> <div style="line-height:130%;">23</div> <div style="line-height:130%;">24</div> <div style="line-height:130%;">25</div> <div style="line-height:130%;">26</div> <div style="line-height:130%;">27</div> <div style="line-height:130%;">28</div> <div style="line-height:130%;">29</div> <div style="line-height:130%;">30</div> <div style="line-height:130%;">31</div> <div style="line-height:130%;">32</div> <div style="line-height:130%;">33</div> <div style="line-height:130%;">34</div> <div style="line-height:130%;">35</div> <div style="line-height:130%;">36</div> <div style="line-height:130%;">37</div> <div style="line-height:130%;">38</div> <div style="line-height:130%;">39</div> <div style="line-height:130%;">40</div> <div style="line-height:130%;">41</div> <div style="line-height:130%;">42</div> <div style="line-height:130%;">43</div> <div style="line-height:130%;">44</div> <div style="line-height:130%;">45</div></div></td> <td style="padding:6px 0px;"> <div style="margin:0px;padding:0px;color:rgb(1,1,1);line-height:130%;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;"> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(0,134,179);">#include</span> <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span>stdio.h<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">></span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"><span style="color:rgb(6,109,226);">int</span> main(<span style="color:rgb(167,29,93);">void</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">{</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    <span style="color:rgb(6,109,226);">int</span> i;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    <span style="color:rgb(6,109,226);">int</span> j;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    <span style="color:rgb(6,109,226);">int</span> kuhaku;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    <span style="color:rgb(6,109,226);">int</span> asuta;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    <span style="color:rgb(6,109,226);">scanf</span>(<span style="color:rgb(99,163,92);">"%d"</span>, &asuta);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    <span style="color:rgb(167,29,93);">for</span> (i <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">1</span>; i <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> asuta; i<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    {</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        <span style="color:rgb(167,29,93);">for</span> (kuhaku <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> asuta <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> i; kuhaku <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">></span> <span style="color:rgb(0,153,204);">0</span>; kuhaku<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        {</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">            <span style="color:rgb(6,109,226);">printf</span>(<span style="color:rgb(99,163,92);">"  "</span>);                                            <span style="color:rgb(153,153,153);">//八角形出力</span></div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        <span style="color:rgb(167,29,93);">for</span> (j <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">2</span>; j <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span> asuta <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span> i <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">*</span> <span style="color:rgb(0,153,204);">2</span>; j<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        {</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">            <span style="color:rgb(6,109,226);">printf</span>(<span style="color:rgb(99,163,92);">"* "</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        <span style="color:rgb(6,109,226);">printf</span>(<span style="color:rgb(99,163,92);">"\n"</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    <span style="color:rgb(167,29,93);">for</span> (i <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">0</span>; i <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span> asuta <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> <span style="color:rgb(0,153,204);">2</span>; i<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    {</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        <span style="color:rgb(167,29,93);">for</span> (j <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">0</span>; j <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span> <span style="color:rgb(0,153,204);">2</span> <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">*</span> asuta <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span> (asuta <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> <span style="color:rgb(0,153,204);">2</span>); j<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        {</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">            <span style="color:rgb(6,109,226);">printf</span>(<span style="color:rgb(99,163,92);">"* "</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        <span style="color:rgb(6,109,226);">printf</span>(<span style="color:rgb(99,163,92);">"\n"</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    <span style="color:rgb(167,29,93);">for</span> (i <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">1</span>; i <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> asuta; i<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    {</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        <span style="color:rgb(167,29,93);">for</span> (kuhaku <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">0</span>; kuhaku <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);"><</span> i <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> <span style="color:rgb(0,153,204);">1</span>; kuhaku<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        {</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">            <span style="color:rgb(6,109,226);">printf</span>(<span style="color:rgb(99,163,92);">"  "</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        <span style="color:rgb(167,29,93);">for</span> (j <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">=</span> <span style="color:rgb(0,153,204);">2</span> <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">*</span> asuta <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">+</span> (asuta <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> <span style="color:rgb(0,153,204);">2</span>); j <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">></span><span style="color:rgb(0,153,204);">2</span> <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">*</span> i <span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span> <span style="color:rgb(0,153,204);">2</span>; j<span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span><span style="color:rgb(1,1,1);"></span><span style="color:rgb(167,29,93);">-</span>)</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        {</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">            <span style="color:rgb(6,109,226);">printf</span>(<span style="color:rgb(99,163,92);">"* "</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">        <span style="color:rgb(6,109,226);">printf</span>(<span style="color:rgb(99,163,92);">"\n"</span>);</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    }</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    getchar();</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">    <span style="color:rgb(167,29,93);">return</span> <span style="color:rgb(0,153,204);">0</span>;</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;">}</div> <div style="padding:0px 6px;line-height:130%;white-space:pre;"> </div></div> <div style="text-align:right;font-size:9px;font-style:italic;margin-top:-13px;margin-right:5px;"><a style="color:rgb(229,229,229);text-decoration:none;" href="http://colorscripter.com/info#e" target="_blank">Colored by Color Scripter</a></div></td> <td style="padding:0px 2px 4px 0px;vertical-align:bottom;"><a style="color:#FFFFFF;text-decoration:none;" href="http://colorscripter.com/info#e" target="_blank"><span style="padding:1px;color:#FFFFFF;font-size:9px;background-color:rgb(229,229,229);">cs</span></a></td></tr></tbody></table></div>
    출처 1hz급 내머리

    이 게시물을 추천한 분들의 목록입니다.
    [1] 2015/06/30 03:33:56  110.11.***.20  chanchan  264579
    [2] 2015/06/30 09:40:21  210.95.***.36  구차니  168644
    [3] 2015/06/30 10:07:42  210.114.***.21  프로그래머  53975
    [4] 2015/06/30 11:58:59  112.218.***.10  릴라강  541511
    푸르딩딩:추천수 3이상 댓글은 배경색이 바뀝니다.
    (단,비공감수가 추천수의 1/3 초과시 해당없음)

    죄송합니다. 댓글 작성은 회원만 가능합니다.

    번호 제 목 이름 날짜 조회 추천
    27
    집에 가는길에 편의점을 들럿는데 DJ.A 15/12/04 12:58 47 0
    26
    오랜만에 굿즈 하나 샀습니다 DJ.A 15/11/30 09:06 54 1
    25
    일본엔 컴퓨존 다나와 같은 사이트가 없을까요? [8] 본인삭제금지 DJ.A 15/11/23 23:11 74 0
    24
    과제 끗 (HTML&css) [2] DJ.A 15/11/19 15:32 32 3
    23
    제가 자료형을 잘 이해못하는것 같아요.. [14] 본인삭제금지 DJ.A 15/11/19 01:36 37 0
    22
    いったいどーゆうことやねん!! [1] DJ.A 15/10/23 13:39 56 7
    21
    오사카는 성지가 어디어디 있을까용 [6] DJ.A 15/10/21 16:51 53 1
    20
    결투장 공이속 장비아이템 추천좀 부탁드립니다. [3] 본인삭제금지 DJ.A 15/10/17 21:22 41 0
    19
    아 너무 빡치네요 [6] DJ.A 15/10/14 21:11 134 0
    18
    레인저 라이징샷 마스터 요새도 하나요? [2] 본인삭제금지외부펌금지 DJ.A 15/09/26 20:04 85 0
    17
    홀수마방진 짜는중입니다. 조언하나만 부탁드립니다(ㅂㅅㄱ) [1] 본인삭제금지 DJ.A 15/09/16 23:27 31 0
    16
    트린 라인전 팁좀 알려주세요... [16] 본인삭제금지 DJ.A 15/09/06 17:08 83 0
    15
    딜 소나(사진4장 데이터주의) [12] 창작글 DJ.A 15/08/27 01:05 130 1
    14
    소나로 루덴을 사면 [4] 본인삭제금지 DJ.A 15/08/12 21:11 143 0
    13
    반응이 극과 극이군요 [1] DJ.A 15/07/05 20:19 269 0
    과제해결했습니다!!!!! [5] 창작글본인삭제금지 DJ.A 15/06/30 02:27 41 4
    11
    최근에 정글마이를 파고있는데요 몇가지 질문드릴게있어요 [10] 본인삭제금지 DJ.A 15/06/23 01:18 82 0
    10
    수업듣는중입니다 [1] DJ.A 15/06/19 12:12 18 0
    9
    C언어 왕초보입니다. 도움 좀 부탁드리겠습니다.. [7] DJ.A 15/05/18 21:00 20 0
    8
    오늘은 오사카 니혼바시 스트리트 페스티벌 축제일입니다 [2] DJ.A 15/03/21 14:52 83 1
    7
    요새 런처 취급이 어떤가요? [8] DJ.A 14/08/31 22:58 128 0
    6
    w 선마하는 소나 질문 [16] DJ.A 14/08/24 22:37 137 0
    5
    왜이렇게 탈주닌자가 많나요... [2] DJ.A 14/08/09 01:47 52 0
    4
    국가 및 언어 설정 옵션 EN 제거.. DJ.A 14/07/09 21:41 18 0
    2
    혹시 해외에서 투표 할 수 있는 방법 있나요??? DJ.A 14/05/16 09:29 19 0
    [1] [2] [3]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈