일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Reversing
- 러스트 프로그래밍 공식 가이드
- 자바 기초
- 파이썬 챌린지
- 데이터베이스
- java
- Database
- 자바 개념
- 운영체제
- Python challenge
- 백준
- Python
- 우분투
- ubuntu
- 오라클
- 러스트 예제
- 러스트
- 파이썬
- OS
- Rust
- 자바
- 오라클DB
- 데이터 통신
- 백준 러스트
- Operating System
- data communication
- 알고리즘
- 파이썬 첼린지
- 파이썬 알고리즘
- C
Archives
- Today
- Total
목록최댓값 최솟값 (1)
IT’s Portfolio
[C] 알고리즘 - 최댓값과 최솟값 구하는 연습문제
Q1. 네 값의 최댓값을 구하는 함수 max4를 작성하세요. #include int max4(int a, int b, int c, int d) { int max = a; if (b > max) max = b; if (c > max) max = c; if (d > max) max = d; return max; } int main(void){ int a, b, c, d; printf("네 정수를 입력하세요.\n"); scanf_s("%d %d %d %d", &a, &b, &c, &d); int max = max4(a, b, c, d); printf("%d", max); return 0; } 실행화면 Q2. 세 값의 최솟값을 구하는 min3 함수를 작성하세요. #include int min3(int a, in..
Development Study/C
2020. 4. 8. 16:24