Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cc_switch_example (int n){
- /*sample module using switch*/
- if (>0){
- switch(n){
- case 0: case 1: printf("zero or one\n");
- break;
- case 2: printf ("two\n");
- break;
- case 3: case 4: printf("three or four\n");
- break;
- }
- }
- else
- printf("negative\n");
- }
Add Comment
Please, Sign In to add comment