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 | 29 | 30 | 31 |
Tags
- 호버
- Router
- egov spring ajax 사용 예시
- summary
- angular modal
- angular route
- formgroup
- scroll
- 스크롤 이벤트 감지
- 모달
- Oracle LISTAGG 사용 예시
- 앵귤러 애니메이션
- modal
- angular button
- prisma
- mysql if
- 옵저버블
- ajax 사용 예시
- ApexChart
- Ionic modal
- Angular Router
- route
- 아이오닉 스크롤 이벤트
- angular animation
- 스크롤 이벤트
- 앵귤러 모달
- TAILWIND
- 셀렉트박스 커스텀
- 검색
- flex-1
Archives
- Today
- Total
목록C언어 다차원 배열 (1)
깜놀하는 해므찌로
C언어 다차원 배열 기초 사용법 예시
#include int main(void){ int score[5][2]; int total[2] = {0, }; // 모든 요소에 0만 넣고 비워 둔다 int i; for(i = 0; i < 5; i++){ printf("\n%d번 학생의 수학 점수 : ", i+1); scanf("%d", &score[i][0]); printf("\n%d번 학생의 영어 점수 : ", i+1); scanf("%d", &score[i][1]); total[0] += score[i][0]; total[1] += score[i][1]; } printf("\n영어 점수 합계 : %d", total[0]); printf("\n수학 점수 합계 : %d", total[1]); return 0; }
IT
2023. 4. 27. 22:35