Explain me this!
#include<stdio.h> int main(){ int subject; printf("Choose Your subject in which you have passed\n"); printf("If you have passed only Math then enter 1\n"); printf("If you have passed only Science then enter 2\n"); printf("If you have passed both Math & Science then enter 4\n"); scanf("%d" ,&subject); printf("You have entered: %d \n"); if (subject==1) { printf("You have passed only | Math | \n"); printf("You will get only 15 toffee!!"); } else if (subject==2) { printf("You have passed only | Science | \n"); printf("You will get only 15 toffee!!"); } else if (subject==4) { printf("You have passed both | Math | & | Science | \n"); printf("Hurray!! You will get only 50 toffee!!"); } else { printf("You have entered Wrong! :("); } return 0; }