#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
main(void)
{
int score;
char result;
printf("\n\n ----------------------------");
printf("\n\n 성적 관리 기준 안내");
printf("\n\n ----------------------------");
printf("\n\n 학점을 입력하시오 : ");
scanf("%d", &score);
if (score > 79)
{
if (score < 85)
result = 'b0';
else if (score < 90)
result = 'b+';
else if (score < 95)
result = 'a0';
else
result = 'a+';
}
else
{
if (score < 60)
result = 'f';
else if (score < 65)
result = 'd0';
else if (score < 70)
result = 'd+';
else if (score < 75)
result = 'c0';
else
result = 'c+';
}
printf("\n\n당신의 성적은 %s", result);
}
warning C4305: '=': 'int'에서 'char'(으)로 잘립니다.
이런 오류 뜨는데 어카냐 ㅅㅂ...
와 개고수다 학사관리시스템을 한번에 만들어버리네
ㄷㄷㄷㄷ