int main() { int pass; printf("which subject you pass in if 1 you pass science , if 2 you pass in math ,if 3 you pass in math and science \n"); scanf("%d",&pass); if(pass==1){ printf("you got price of 45"); } else if(pass==2){ printf("you got price of 15"); } else if(pass==3){ printf("you got price of 15"); } else{ printf("you are fail"); } }