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");
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter