Unit 18.9

Run Settings
LanguageC
Language Version
Run Command
#include<stdio.h> int main(void) { int Kor,Eng,Math,Sc; int avg=0,sum=0; scanf("%d %d %d %d",&Kor,&Eng,&Math,&Sc); if(Kor<0||Kor>100&&Eng<0||Eng>100&&Math<0||Math>100&&Sc<0||Sc>100) { printf("잘못된 점수\n"); } else { sum=Kor+Eng+Math+Sc; avg=sum/4; if(avg>=85) { printf("합격"); } else printf("불합격"); } }
Editor Settings
Theme
Key bindings
Full width
Lines