#include <stdio.h> //broken but I don't know why.....8ㅅ8
int main()
{ char credit;
printf("Input your credit.(in captical letter)");
scanf("%c", credit);
switch('credit')
{
case 'A':
printf("Perfect!");
break;
case 'B':
printf("great!");
break;
case 'C':
printf("Nice!");
break;
default :
printf("Is it a CREDIT...?!\n nah kidding, do your best next time!");
break;
}
return 0;
}
//I don't want to judge anyone's score but my text book does :'(
int main()
{ char credit;
printf("Input your credit.(in captical letter)");
scanf("%c", credit);
switch('credit')
{
case 'A':
printf("Perfect!");
break;
case 'B':
printf("great!");
break;
case 'C':
printf("Nice!");
break;
default :
printf("Is it a CREDIT...?!\n nah kidding, do your best next time!");
break;
}
return 0;
}
//I don't want to judge anyone's score but my text book does :'(
댓글
댓글 쓰기