if else if
Tue Jun 07 2022 18:06:25 GMT+0000 (Coordinated Universal Time)
Saved by
@KanishqJ8
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");
}
}
content_copyCOPY
Comments