김학규의 홈페이지입니다.
뉴스와토론
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)
993
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 (허용 확장자 : *.*)
번호
제목
글쓴이
날짜
조회 수
2852
GE 배경음악 중에 제목 알고 싶습니다
5
김주완
2007-03-17
981
2851
엑셀링 하실때...
2
FooBar
2007-03-24
981
2850
조립 컴퓨터 부품간 호환에 대한 질문입니다.
5
솔밑
2007-03-26
981
2849
게임 소프트웨어 설계
1
고고헤븐
2007-04-07
981
2848
C++질문입니다.
4
yggdrasil
2007-04-09
981
2847
[re] 상속관계와 list
Excelsis
2007-05-02
981
2846
진로관련 상담이요....
11
Nova
2007-05-27
981
2845
Thread 핸들 값을 이용하여 해당 쓰래드의 PCONTEXT 값을 가져오려면 어떻게 해야하나요?
고영훈
2007-06-07
981
2844
프로그래밍 초보입니다.
6
글로
2007-06-21
981
2843
화면 전환 이펙트시....(중략)
5
랩하는좀비
2007-08-21
981
2842
class에서 struct로의 캐스팅, 또는 그 반대
17
트랜스
2007-08-30
981
2841
RIA 사용가격..질문입니다.
3
김택현
2007-09-16
981
2840
현재 다니고 계시는 회사의 보안 수위는 어느정도인가요??
7
죤
2007-12-03
981
2839
자바 스크립트 질문입니다.
3
DeathMage
2007-12-12
981
2838
국제자격증준비를하려고하는데요
3
Moong
2008-03-03
981
2837
자바 개념 질문입니다.
5
마자마자
2008-04-23
981
2836
게임 프로그래밍 서적에 관한 질문과 이런저런..
9
연화
2008-07-24
981
2835
기획관련 서적 추천 부탁드립니다^^;
3
영게임
2009-01-18
981
2834
이게 무슨 뜻인지 모르겠습니다.
5
kimo
2009-06-12
981
2833
에러입니다..ㅜㅜ
4
kimo
2009-06-12
981
목록
쓰기
첫 페이지
4
5
6
7
8
9
10
11
12
13
끝 페이지
제목
내용
제목+내용
댓글
이름
닉네임
아이디
태그
검색
취소
변수 A는 2를 찍는 갯수
면수 B는 1을 찍는 갯수라고 해봅시다.
그럼 초기값은 A = 9, B = 0이겠죠. (2는 9번 찍히고 1은 0번 찍히니깐요)
그다음 루프를 돌면서 A는 2만큼 감소시키고 B는 1만큼 증가 시킵니다.
루프를 돌때 B의 갯수만큼 1을 찍고 A의 갯수만큼 2를 찍습니다.
루프의 탈출조건은 count가 0 이하가 되면 탈출하면 됩니다.
이것말고 다른 방법도 있지만 이 방법이 아마 이해하기에는 쉬울것 같네요.