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
- 아이오닉 스크롤 이벤트
- Ionic modal
- Router
- 검색
- Angular Router
- summary
- formgroup
- TAILWIND
- modal
- 모달
- 셀렉트박스 커스텀
- flex-1
- ajax 사용 예시
- mysql if
- egov spring ajax 사용 예시
- prisma
- ApexChart
- 앵귤러 애니메이션
- 호버
- Oracle LISTAGG 사용 예시
- angular animation
- angular button
- 옵저버블
- angular modal
- 스크롤 이벤트 감지
- 앵귤러 모달
- 스크롤 이벤트
- route
- scroll
- angular route
Archives
- Today
- Total
깜놀하는 해므찌로
C언어 다차원 배열 기초 사용법 예시 본문
반응형
SMALL
#include <stdio.h>
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;
}
반응형
LIST
'IT' 카테고리의 다른 글
tailwind hover 호버 이벤트 ring / 호버 시 테두리 (0) | 2023.04.28 |
---|---|
Angular 사업자 번호 input 컴포넌트 예시 / 사업자 번호 정규식 (0) | 2023.04.28 |
Typescript sort 역순 예시 / angular 2가지 방법 (0) | 2023.04.27 |
CSS tailwind basis 사용 예시 / flex-1 게시판 (0) | 2023.04.27 |
C언어 기초 알고리즘 배열 내 가장 큰 수 찾기 예시 (0) | 2023.04.26 |