일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- mac terminal command
- #CallByAddress
- #JAVASCRIPT
- #C++ has~a
- html youtube
- html5 new tag
- #android activity
- docker example
- #성적관리프로그램
- html video
- #다차원포인터
- html object
- #C++ 연산자함수오버로딩
- html id
- #binary
- html charset
- relative path
- #자바상속#자바이즈어#is~a
- html plug-in
- hyperledger transaction
- html code
- #2차원배열
- 토큰경제
- 하이퍼레저패브릭
- #1차원배열
- border-box
- #3차원배열
- #bubbleSort
- git flow
- html multimedia
- Today
- Total
목록#1차원배열 (2)
A sentimental robot
#include #pragma warning(disable:4996) void main() { char name[10]; int score[3]; int sum = 0; float avg; printf("name input :"); scanf("%s", name); printf("kor :"); scanf("%d", score); printf("eng :"); scanf("%d", score + 1); printf("mat :"); scanf("%d", score + 2); sum = *score + *(score + 1) + *(score + 2); avg = sum / 3.f; printf("name\tkor\teng\tmat\tsum\tavg\n"); printf("%s\t%d\t%d\t%d\t%d..
#include #pragma warning(disable : 4996) void main() { int score[3]; int sum; float avg; char name[10]; printf("name input : "); scanf("%s", &name[0]); printf("Korean :"); rewind(stdin); scanf("%d", &score[0]); printf("English :"); scanf("%d", &score[1]); printf("Math :"); scanf("%d", &score[2]); sum = score[0] + score[1] + score[2]; avg = sum / 3.f; printf("name:%s\nsum:%d\naverage:%f\n", name,..