Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. char m;
  5.  
  6. printf("Enter your character: ");
  7. scanf("%s",&m);
  8.  
  9. switch(m)
  10. {
  11. case 'A':
  12. printf("Input is A");
  13. break;
  14. case 'B':
  15. printf("Input is B");
  16. break;
  17.  
  18. case 'C':
  19. printf("Input is C");
  20. break;
  21. case 'D':
  22. printf("Input is D");
  23. break;
  24. default:
  25. printf("Your input is not from A to D");
  26. }
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement