We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 281c00f commit 1d59164Copy full SHA for 1d59164
EIP/C/README.md
@@ -627,3 +627,36 @@
627
- 박영희
628
629
630
+
631
+- 문제5. 다음 C언어로 구현된 프로그램을 분석하여 그 실행 결과를 쓰시오. (단, 출력문의 출력 서식을 준수하시오)
632
633
+ ```c
634
+ #include <stdio.h>
635
636
+ int main() {
637
+ int n[3] = [73, 95, 82];
638
+ sum = 0;
639
+ int i;
640
641
+ for (i=0; i<3; i++) {
642
+ sum += n[i];
643
+ }
644
645
+ switch(sum/30) {
646
+ case 10:
647
+ case 9:
648
+ printf("A");
649
+ case 8:
650
+ printf("B");
651
+ case 7:
652
+ case 6:
653
+ printf("C");
654
+ default:
655
+ printf("D");
656
657
658
+ return 0;
659
660
+ ```
661
662
+ - [답] BCD
0 commit comments