Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main()
- {
- int Grade = 'A';
- switch( Grade )
- {
- case 'A' : printf( "Excellent\n" );
- case 'B' : printf( "Good\n" );
- case 'C' : printf( "OK\n" );
- case 'D' : printf( "Mmmmm....\n" );
- case 'F' : printf( "You must do better than this\n" );
- default : printf( "What is your grade anyway?\n" );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment