본문 바로가기
728x90

C언어10

[개인학습자료] C언어 - 회원가입/로그인 프로그램 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 #include #include #include #include #include #.. 2020. 3. 27.
[개인학습자료] C언어 - 두개의 배열를 합쳐 오름차순 정렬하기 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 #include #include #include #define space 10 void sequence(int a[], int n); // 오름차순 함수 void print_normal(int a[], .. 2020. 3. 27.
[개인학습자료] C언어 - 2020년 달력 프로그램 include //2020년 달력 프로그램 int main(void) { int day = 1;//요일 int year = 2020;//년도 int date;//날짜 int month;//달 int month_date;//해당 달의 마지막날 int year_check = ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);//윤년체크 int n;//여분의 값 puts("---- 2020년 ----"); puts(""); puts(""); for (month = 1; month < 13; month++) { printf("------ %d월 ------\n", month); //해당 달의 마지막날 계산 switch (month) { case 2: if.. 2020. 3. 27.
[개인학습자료] C언어 - 대학성적 프로그램(랜덤) include include int main() { /* //대학성적표(절대평가) - if문 int class_a[20]; int num = 1; for (int i = 0; i = 90) printf("%d번 %d점 A학점\n", i + 1, class_a[i]); else if (class_a[i] >= 80 && class_a[i] = 70 && class_a[i] < 80) printf("%d번 %d점 C학점\n", i + 1, class_a[i]); else if (cla.. 2020. 3. 27.
728x90