SlideShare a Scribd company logo
1 of 37
Download to read offline
#include <stdio.h>
#define SEED_MONEY 1000000
int main(void){
int year=0, money=SEED_MONEY;
while(1){
year++;
money+=money*0.30;
if(money>10*SEED_MONEY)
break;
}
printf("%dn",year);
return 0;
}
#include <stdio.h>
#define SEED_MONEY 1000000
int main(void){
int year=0, money=SEED_MONEY;
while(1){
year++;
money+=money*0.30;
if(money>10*SEED_MONEY)
break;
}
printf("%dn",year);
return 0;
}
#include <stdio.h>
#define SEED_MONEY 1000000
int main(void){
int year=0, money=SEED_MONEY;
while(1){
year++;
money+=money*0.30;
if(money>10*SEED_MONEY)
break;
}
printf("%dn",year);
return 0;
}
#include <stdio.h>
#define SEED_MONEY 1000000
int main(void){
int year=0, money=SEED_MONEY;
while(1){
year++;
money+=money*0.30;
if(money>10*SEED_MONEY)
break;
}
printf("%dn",year);
return 0;
}
#include <stdio.h>
#define SEED_MONEY 1000000
int main(void){
int year=0, money=SEED_MONEY;
while(1){
year++;
money+=money*0.30;
if(money>10*SEED_MONEY)
break;
}
printf("%dn",year);
return 0;
}
#include <stdio.h>
#define SEED_MONEY 1000000
int main(void){
int year=0, money=SEED_MONEY;
while(1){
year++;
money+=money*0.30;
if(money>10*SEED_MONEY)
break;
}
printf("%dn",year);
return 0;
}
Lab
#include <stdio.h>
int main(void){
int i;
for(i=0;i<10;i++){
if(i%3 !=0 )
continue;
printf(“%dn”, i);
}
return 0;
}
#include <stdio.h>
int main(void){
int i;
for(i=0;i<10;i++){
if(i%3 !=0 )
continue;
printf(“%dn”, i);
}
return 0;
}
#include <stdio.h>
int main(void){
int i;
for(i=0;i<10;i++){
if(i%3 !=0 )
continue;
printf(“%dn”, i);
}
return 0;
}
Lab
07 5 반복문(break,contine).key

More Related Content

What's hot (20)

Vcs6
Vcs6Vcs6
Vcs6
 
Ooprc3b
Ooprc3bOoprc3b
Ooprc3b
 
B.f.s
B.f.sB.f.s
B.f.s
 
hmbs
hmbshmbs
hmbs
 
Heep implementation in c
Heep implementation in cHeep implementation in c
Heep implementation in c
 
Sum2
Sum2Sum2
Sum2
 
Cpro
CproCpro
Cpro
 
Sources
SourcesSources
Sources
 
Psr calculation matlab code
Psr calculation matlab codePsr calculation matlab code
Psr calculation matlab code
 
Slides
SlidesSlides
Slides
 
Union
UnionUnion
Union
 
2012 December Supervisor of the Month Nominee
2012 December Supervisor of the Month Nominee2012 December Supervisor of the Month Nominee
2012 December Supervisor of the Month Nominee
 
Luis cuñas programacion
Luis cuñas programacionLuis cuñas programacion
Luis cuñas programacion
 
Bubble sort
Bubble sortBubble sort
Bubble sort
 
C언어 스터디 강의자료 - 3차시
C언어 스터디 강의자료 - 3차시C언어 스터디 강의자료 - 3차시
C언어 스터디 강의자료 - 3차시
 
Rafaeltorres
RafaeltorresRafaeltorres
Rafaeltorres
 
Bai lam chuong 3
Bai lam chuong 3Bai lam chuong 3
Bai lam chuong 3
 
Pruebabfs
PruebabfsPruebabfs
Pruebabfs
 
memoria dinamica
memoria dinamicamemoria dinamica
memoria dinamica
 
Programa de los vectores
Programa de los vectoresPrograma de los vectores
Programa de los vectores
 

More from Changwon National University

생성인공지능둘러보기.pdf
생성인공지능둘러보기.pdf생성인공지능둘러보기.pdf
생성인공지능둘러보기.pdfChangwon National University
 
알아두면 편리한 macOS 에디터 단축키와 기능
알아두면 편리한 macOS 에디터  단축키와 기능알아두면 편리한 macOS 에디터  단축키와 기능
알아두면 편리한 macOS 에디터 단축키와 기능Changwon National University
 
키보드 기호의 이름 알아보기(한국어, 영어)
키보드 기호의 이름 알아보기(한국어, 영어)키보드 기호의 이름 알아보기(한국어, 영어)
키보드 기호의 이름 알아보기(한국어, 영어)Changwon National University
 
AI 로봇 아티스트의 비밀(창원대학교 정보통신공학과 특강)
AI 로봇 아티스트의 비밀(창원대학교 정보통신공학과 특강)AI 로봇 아티스트의 비밀(창원대학교 정보통신공학과 특강)
AI 로봇 아티스트의 비밀(창원대학교 정보통신공학과 특강)Changwon National University
 
18 2 파이썬표준라이브러리
18 2 파이썬표준라이브러리18 2 파이썬표준라이브러리
18 2 파이썬표준라이브러리Changwon National University
 
15 2 클래스정의와self
15 2 클래스정의와self15 2 클래스정의와self
15 2 클래스정의와selfChangwon National University
 

More from Changwon National University (20)

생성인공지능둘러보기.pdf
생성인공지능둘러보기.pdf생성인공지능둘러보기.pdf
생성인공지능둘러보기.pdf
 
2011 app center Changwon National Univ.
2011 app center Changwon National Univ.2011 app center Changwon National Univ.
2011 app center Changwon National Univ.
 
인공지능의 파도가 온다
인공지능의 파도가 온다인공지능의 파도가 온다
인공지능의 파도가 온다
 
Mobile Healthcare Application
Mobile Healthcare ApplicationMobile Healthcare Application
Mobile Healthcare Application
 
바다 즐기기
바다 즐기기바다 즐기기
바다 즐기기
 
알아두면 편리한 macOS 에디터 단축키와 기능
알아두면 편리한 macOS 에디터  단축키와 기능알아두면 편리한 macOS 에디터  단축키와 기능
알아두면 편리한 macOS 에디터 단축키와 기능
 
키보드 기호의 이름 알아보기(한국어, 영어)
키보드 기호의 이름 알아보기(한국어, 영어)키보드 기호의 이름 알아보기(한국어, 영어)
키보드 기호의 이름 알아보기(한국어, 영어)
 
AI 로봇 아티스트의 비밀(창원대학교 정보통신공학과 특강)
AI 로봇 아티스트의 비밀(창원대학교 정보통신공학과 특강)AI 로봇 아티스트의 비밀(창원대학교 정보통신공학과 특강)
AI 로봇 아티스트의 비밀(창원대학교 정보통신공학과 특강)
 
20 2 강의를 마치며
20 2 강의를 마치며20 2 강의를 마치며
20 2 강의를 마치며
 
20 1 코딩스타일
20 1 코딩스타일20 1 코딩스타일
20 1 코딩스타일
 
18 2 파이썬표준라이브러리
18 2 파이썬표준라이브러리18 2 파이썬표준라이브러리
18 2 파이썬표준라이브러리
 
18 1 파이썬패키지
18 1 파이썬패키지18 1 파이썬패키지
18 1 파이썬패키지
 
17 2 필터함수와 맵함수
17 2 필터함수와 맵함수17 2 필터함수와 맵함수
17 2 필터함수와 맵함수
 
17 1 람다함수
17 1 람다함수17 1 람다함수
17 1 람다함수
 
16 1 상속과super()
16 1 상속과super()16 1 상속과super()
16 1 상속과super()
 
15 2 클래스정의와self
15 2 클래스정의와self15 2 클래스정의와self
15 2 클래스정의와self
 
14 4 슬라이싱
14 4 슬라이싱14 4 슬라이싱
14 4 슬라이싱
 
14 2 iterator
14 2 iterator14 2 iterator
14 2 iterator
 
14 3 리스트함수
14 3 리스트함수14 3 리스트함수
14 3 리스트함수
 
14 1 리스트의 메소드
14 1 리스트의 메소드14 1 리스트의 메소드
14 1 리스트의 메소드
 

07 5 반복문(break,contine).key