SlideShare a Scribd company logo
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
int add(int x, int y){
int result;
result = x + y;
return result;
}
Lab
Lab
#include <stdio.h>
int factorial(int n){
int i;
int result = 1;
for(i = 1;i<=n;i++)
result *= i;
return result;
}
int main(void){
printf("3! : %dn",factorial(3));
printf("5! : %dn",factorial(5));
}
factor.c
16 1 매개변수

More Related Content

More from 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)

키보드 기호의 이름 알아보기(한국어, 영어)
키보드 기호의 이름 알아보기(한국어, 영어)키보드 기호의 이름 알아보기(한국어, 영어)
키보드 기호의 이름 알아보기(한국어, 영어)
 
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 리스트의 메소드
 
12 3 raise문
12 3 raise문12 3 raise문
12 3 raise문
 
12 1 예외처리(try-except)
12 1 예외처리(try-except)12 1 예외처리(try-except)
12 1 예외처리(try-except)
 
11 1 while반복문
11 1 while반복문11 1 while반복문
11 1 while반복문
 
10 2 튜플
10 2 튜플10 2 튜플
10 2 튜플
 
10 1 딕셔너리
10 1 딕셔너리10 1 딕셔너리
10 1 딕셔너리
 
09 3 random모듈
09 3 random모듈09 3 random모듈
09 3 random모듈
 

16 1 매개변수