1.1. 부 ¶
- Type Conversion
- Type Casting
- Control Structures
- Conditional Branch
- if else
- switch case
- if else
- Loop
- for
- while
- do while
- Infinite loop
- for
- Conditional Branch
1.1.1. ¶
#include <stdio.h> #include <assert.h> int main() { char grade; int score; scanf("%d", &score) ; if((score>=90) && (score<=100)) { grade='a'; } else if((score>=80) && (score<90)) { grade='b'; } else if((score>=70) && (score<80)) { grade='c'; } else if((score>=60) && (score<70)) { grade='d' ; } else { grade='f'; } printf("%c \n", grade); //assert(grade=='c'); return 0;
1.1.2. ¶
#include <stdio.h> #include <assert.h> int main() { char grade; int score; scanf("%d", &score); if((100>=score) && (score>=90)){ grade='a'; } else if((90>score) && (score>=80)){ grade='b'; } else if((80>score) && (score>=70)){ grade='c'; } else if((70>score) && (score>=0)){ grade='d'; } else{grade='f';} printf("%c" , grade); //assert(grade=='c'); return 0; }
1.2.1. ¶
- 를 배. 맛. 만 는 . 만 . 1, 2, 3 대 는, 5 는는 럭럭 만는데 ............ 무. 배 배. C를 빨리빨리 배 매매 1만 C를 루 낰 따리 빨리배 ㅎㅎㅎ 머리 많 리 늦늦 는데 낰 만면 더 는 만 면......... 빨리빨리배 링먹대 는 대 무말