김학규의 홈페이지입니다.
뉴스와토론
Neolith의 방
갤러리
기획&아이디어
Q&A와 스터디
소모임&잡담
차갤
지름신갤
추천/비추천
WIKI
링크
Q&A와 스터디
글 수
3,012
회원 가입
로그인
c언어 질문 입니다.
12년3월
http://old.lameproof.com/399950
2010.04.14
19:52:18 (*.9.193.217)
1060
222222222
12222222
1122222
111222
11112
요즘 반복문을 배우는대요...
for문을 사용하고 printf("2"); <이렇게 한글자만 넣어서
위에 있는걸 해보라는데요... 도저히 전... 안나오네요....
어떻게 해야 저렇게 할수 있을까요...
이 게시물을...
목록
2010.04.14
20:29:43 (*.74.90.166)
1ststory
간단하게 생각하세요.
변수 A는 2를 찍는 갯수
면수 B는 1을 찍는 갯수라고 해봅시다.
그럼 초기값은 A = 9, B = 0이겠죠. (2는 9번 찍히고 1은 0번 찍히니깐요)
그다음 루프를 돌면서 A는 2만큼 감소시키고 B는 1만큼 증가 시킵니다.
루프를 돌때 B의 갯수만큼 1을 찍고 A의 갯수만큼 2를 찍습니다.
루프의 탈출조건은 count가 0 이하가 되면 탈출하면 됩니다.
이것말고 다른 방법도 있지만 이 방법이 아마 이해하기에는 쉬울것 같네요.
2010.04.14
20:47:55 (*.9.193.217)
12년3월
정말 고맙습니다 도움이 많이 되었습니다.
2013.05.19
11:28:33 (*.153.235.115)
bestbasci01@yahoo.com
Coach Handbags
having eaten his soup
cheap burberry handbags
into the small chamber
wholesale designer purses
beneath the roof and facing
coach outlet online
overcome with fatigue
coach outlet coach
was dazed for a moment
cheap designer bags
so heavy that he rose
cheap designer purses
with the idea of getting
furla handbags
fresh air before having
gucci handbags
approach of which one feels
gucci wallet
on in great mists which
hermes handbags
the low sky seemed to
jimmy choo handbags
of wind now to animate
cheap juicy couture handbags
walked straight ahead
juicy couture wallet
already growing gloomy at
cheap louis vuitton bags
lantern yet shining from
cheap louis vuitton wallet
to watch the departure
mk purses
going away in bands
mk wallet
abusing him because
prada handbags
quarrel with an overseer over
prada wallet
of these beasts who devour
roberto cavalli handbags
enough for them to
Coach purse
with her eagle nose
coach purses
young people behind
cheap handbags purses
who was waiting there
cheap handbags and purses
will have something to
outlet coach online
coming out of the screening
coach online outlet
also coming out
cheap coach purses
son taking the main road
coach purses outlet
spite of her resistance into
cheap purses and handbags
wrangled like old housemates
cheap purses handbags
are no wheatfields to
purses and handbags cheap
had reduced his family
cheap gucci bags
us if it will amuse you
purses handbags wholesale
getting on at the house
wholesale purses handbags
to whom he had promised
wholesale handbags purses
every evening like the fowls
handbags purses wholesale
the thread and drew out
handbags and purses wholesale
franc pieces from corner
cheap louis vuitton handbags
profit of the overtime
wholesale purses and handbags
your mother decide to
china handbags
for every mouthful
china purses
spoke with the soft voice
prada bags
it was a sacred promise
purses from china
had got the three pieces
bags from china
things to an extreme in
coach bags
the winter chamber
louis vuitton outlet
it would not give her any
louis vuitton bags
to the settlement alone
louis vuitton belts
to rejoin his companion
louis vuitton store
without understanding
Louis Vuitton Damier bags
for behind the factories
handbags louis vuitton
hollow into which some large
louis vuitton sunglasses
of you if you want more
louis vuitton louis vuitton handbags
roamed about in the meadows
louis vuitton wallets
and instead of going back to
outlet louis vuitton
and offer the dandelions
louis vuitton handbags
enough to know that
louis vuitton purses bags
the ardour of business
louis vuitton men bags
were dividing the profits
louis vuitton monogram bags
credulity which always made
louis vuitton bags handbag
all that money excited
purses louis vuitton
at your house that you
cheap louis vuitton
divide eleven sous into
louis vuitton purses
experienced the fear and
louis vuitton sale
advanced her hand with
bags louis vuitton
how to hide them from
louis vuitton louis vuitton purses
together the love which
louis vuitton bags purses
games of vicious puppies
louis vuitton wallet
delicious trembling of instinct
louis vuitton bag
received a cuffing whenever http://www.ask.com http://www.yahoo.com http://www.bing.com http://www.google.com http://www.aol.com
2013.08.19
10:51:19 (*.205.198.166)
1457456863@qq.com
雪地靴 2013新款
雪地靴
雪地靴
雪地靴
雪地靴
雪地靴
雪地靴
雪地靴
雪地靴
雪地靴
雪地靴
马丁靴
雪地靴 短靴
雪地靴 兔毛
雪地靴 狐狸毛
雪地靴 女 高筒
豆豆鞋 女
雪地靴 流苏
雪地靴 女 短靴 2013新款
雪地靴 女 中筒
雪地靴 女 短靴
雪地靴 2013新款
나의 소셜 정보
원하시는 로그인을 선택해주세요
비밀번호
» 편집 도구모음 건너뛰기
되돌리기
다시 실행
형식
제목 1
제목 2
제목 3
제목 4
제목 5
제목 6
글꼴
돋움
굴림
바탕
Arial
Arial Black
Tahoma
Verdana
Sans-serif
Serif
Monospace
Cursive
Fantasy
크기
9px
10px
11px
12px
13px
14px
16px
18px
24px
32px
줄 간격
100%
120%
140%
160%
180%
200%
진하게
밑줄
기울임
취소선
글자 색
#ff0000
#ff6c00
#ffaa00
#ffef00
#a6cf00
#009e25
#00b0a2
#0075c8
#3a32c3
#7820b9
#ef007c
#000000
#252525
#464646
#636363
#7d7d7d
#9a9a9a
#ffe8e8
#f7e2d2
#f5eddc
#f5f4e0
#edf2c2
#def7e5
#d9eeec
#c9e0f0
#d6d4eb
#e7dbed
#f1e2ea
#acacac
#c2c2c2
#cccccc
#e1e1e1
#ebebeb
#ffffff
#e97d81
#e19b73
#d1b274
#cfcca2
#cfcca2
#61b977
#53aea8
#518fbb
#6a65bb
#9a54ce
#e573ae
#5a504b
#767b86
#00ffff
#00ff00
#a0f000
#ffff00
#951015
#6e391a
#785c25
#5f5b25
#4c511f
#1c4827
#0d514c
#1b496a
#2b285f
#45245b
#721947
#352e2c
#3c3f45
#00aaff
#0000ff
#a800ff
#ff00ff
글자 배경색
가나다
가나다
가나다
가나다
가나다
가나다
가나다
가나다
가나다
가나다
가나다
가나다
가나다
가나다
가나다
위 첨자
아래 첨자
왼쪽 정렬
가운데 정렬
오른쪽 정렬
양쪽 정렬
번호 매기기
목록
단락의 들여쓰기 수준을 낮춥니다.
들여쓰기
인용문
왼쪽 실선
인용 부호
실선
실선 + 배경
굵은 실선
점선
점선 + 배경
적용 취소
링크
하이퍼링크
새 창으로
확인
취소
특수문자
특수문자 삽입
특수문자 레이어 닫기
일반기호
숫자와 단위
원, 괄호
한글
그리스,라틴어
일본어
선택한 기호
특수문자 레이어 닫기
표
칸 수 지정
행
1행 추가
1행 삭제
열
1열 추가
1열 삭제
표 속성 지정
테두리 굵기
1px 더하기
1px 빼기
테두리 색
색상 찾기
색상 찾기
표 배경색
색상 찾기
색상 찾기
셀 병합
열 분할
행 분할
확장 컴포넌트
이모티콘 출력
이미지 추가
멀티미디어 자료 관리
설문조사 컴포넌트
기본 이미지 갤러리
Naver Photo Editor
HTML 편집기
입력창 크기 조절
파일 첨부
선택 삭제
본문 삽입
문서 첨부 제한 : 0Byte/ 20.00MB
파일 제한 크기 : 20.00MB (허용 확장자 : *.*)
조회 수
추천 수
날짜
최근 수정일
윈도우 오류 질문
(
1
)
민스
2004.07.14
조회 수
1012
추천 수
20
향후 어떤식으로 공부해야 될런지.....
(
10
)
가을귀../GrayScale
2005.04.01
조회 수
1012
추천 수
12
파티클 그림작업에 대해 질문이있습니다.
SATSUKI
2005.05.26
조회 수
1012
추천 수
1
코믹샾이니, 님프랜더러니, 도트 랜더러
(
4
)
[
1
]
윤원영
2006.08.02
조회 수
1012
10명 정도로 캐쥬얼 게임 개발시 기간은 어느정도 걸립니까?
(
5
)
김정현
2006.10.09
조회 수
1012
프로그래밍에 대한 기본적인 이해라는게 어느정도 인가요?
(
6
)
mush
2007.03.23
조회 수
1012
온라인 게임 버그사용하면 개발자가 어떻게 추적하여 알아내는거죠?
(
4
)
김남욱
2007.04.21
조회 수
1012
쓸만한 웹하드 아는분 안계세요?
(
4
)
[
3
]
제이
2007.11.01
조회 수
1012
C언어 책을 구입했어요 -ㅅ-;
(
7
)
김정환
2004.05.21
조회 수
1013
추천 수
1
겜을 만들때 화면밝기조정하는 옵션을..
(
2
)
푸안
2004.05.30
조회 수
1013
추천 수
1
밑의 질문에 이어 또하나의 무식한 질문
(
3
)
냐옹
2004.08.29
조회 수
1013
추천 수
1
플래쉬로 리듬액션게임 만들고 싶은데
(
2
)
세운깡
2004.10.29
조회 수
1013
추천 수
30
장소에 따라 능력의 변동이 주어진다면 문제점은?
(
6
)
이굴
2005.01.21
조회 수
1013
추천 수
1
온라인 게임은 어떤 과정을 거쳐 만들어지나요?
(
3
)
천공의스쿠타
2005.03.05
조회 수
1013
추천 수
12
익스플로러 자동 시작페이지....
(
7
)
[
30
]
kimo
2005.05.14
조회 수
1013
추천 수
13
질문입니다.
(
6
)
레인크로우
2005.10.14
조회 수
1013
추천 수
31
군대 문제~
(
5
)
CamilleBidan
2006.07.10
조회 수
1013
네트워크 보드게임 개발에 관련 질문입니다.
(
3
)
홍승원
2006.09.01
조회 수
1013
게임관련 대학은...어디가 좋을까요??
(
15
)
메론나무
2006.09.08
조회 수
1013
노트북 사용중 문제인데요.
(
2
)
[
17
]
김남욱
2006.10.14
조회 수
1013
목록
쓰기
첫 페이지
12
13
14
15
16
17
18
19
20
21
끝 페이지
제목
내용
제목+내용
댓글
이름
닉네임
아이디
태그
검색
취소
변수 A는 2를 찍는 갯수
면수 B는 1을 찍는 갯수라고 해봅시다.
그럼 초기값은 A = 9, B = 0이겠죠. (2는 9번 찍히고 1은 0번 찍히니깐요)
그다음 루프를 돌면서 A는 2만큼 감소시키고 B는 1만큼 증가 시킵니다.
루프를 돌때 B의 갯수만큼 1을 찍고 A의 갯수만큼 2를 찍습니다.
루프의 탈출조건은 count가 0 이하가 되면 탈출하면 됩니다.
이것말고 다른 방법도 있지만 이 방법이 아마 이해하기에는 쉬울것 같네요.