Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- flex-1
- 셀렉트박스 커스텀
- ajax 사용 예시
- angular modal
- Angular Router
- route
- egov spring ajax 사용 예시
- 앵귤러 모달
- 스크롤 이벤트
- 옵저버블
- ApexChart
- Router
- Oracle LISTAGG 사용 예시
- prisma
- summary
- angular route
- 호버
- 앵귤러 애니메이션
- 모달
- modal
- formgroup
- angular button
- 아이오닉 스크롤 이벤트
- TAILWIND
- angular animation
- mysql if
- scroll
- Ionic modal
- 스크롤 이벤트 감지
- 검색
Archives
- Today
- Total
깜놀하는 해므찌로
C언어 기초 알고리즘 배열 내 가장 큰 수 찾기 예시 본문
반응형
SMALL
#include <stdio.h>
#define NUMBER 5 // C언어에서 일반적으로 배열의 사이즈를 정할 때 NUMBER 를 사용
int main(void){
int i, max, min, index;
int array[NUMBER];
for(i = 0; i < NUMBER; i++){
printf("숫자를 입력해주세요.");
scanf("%d", &array[i]);
if(max < array[i]){
max = array[i];
index = i;
}
}
printf("max : %d\n index : %d", max, index);
return 0;
}
반응형
LIST
'IT' 카테고리의 다른 글
Typescript sort 역순 예시 / angular 2가지 방법 (0) | 2023.04.27 |
---|---|
CSS tailwind basis 사용 예시 / flex-1 게시판 (0) | 2023.04.27 |
CSS select box custom Primary feat.tailwind (0) | 2023.04.26 |
Angular component string to template HTML / 컴포넌트 string 템플릿에서 html로 읽는 방법 예시 (0) | 2023.04.26 |
tailwind 기본 설정 / tailwind is not working (0) | 2023.04.25 |