Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- #include <string.h>
- #include <math.h>
- int main()
- {
- char grade = 'C';
- switch(grade){
- case 'A' : printf("Sweet! \n" );
- break;
- case 'B' : printf("Could have tried harder \n" );
- break;
- case 'C' : printf("I C you didnt study \n" );
- break;
- case 'D' : printf("You love the D \n" );
- break;
- case 'F' : printf("That's embarrassing \n" );
- break;
- default : printf("That doesnt even make sense \n" );
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment