More actions
imported>linflus No edit summary |
imported>kimys1324 No edit summary |
||
| Line 15: | Line 15: | ||
=== 후기 === | === 후기 === | ||
==== 김연석 ==== | ==== 김연석 ==== | ||
#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; | |||
==== 오상준 ==== | ==== 오상준 ==== | ||
==== 이승열 ==== | ==== 이승열 ==== | ||
Revision as of 09:51, 6 April 2011
4월 6일
공부할 것
- Type Conversion
- Type Casting
- Control Structures
- Conditional Branch
- if elseif if
- switch case
- Loop
- for
- while
- do while
- Infinite loop
후기
김연석
- 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;