/* * choose_if.c - if-elseif-else */ #include int main(void) { int score; // delcare int variable score printf("Enter your math score (0-100): "); // prompt for input scanf("%d", &score); // read in from stdin, interpret as an int, and sotre in scroe if (score >=90) printf("You earned an A \n"); else if (score >=80) printf("You earned a B \n"); else if (score >=70) printf("You earned a C \n"); else if (score >=60) printf("You earned a D \n"); else printf("Time to start work. \n"); return 0; }