Advertisement
sanpai

Program to change the case of alphabet

Aug 13th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1.  
  2.  
  3. #include<stdio.h>
  4. int main()
  5. {
  6. char a;
  7. int b;
  8. printf(" \n enter the alphabet from the keyboard " );
  9. scanf("%c" ,&a);
  10.  
  11. b=a;
  12. if(b >= 97 && b <=122)
  13. {
  14. b=b-32;
  15. }
  16. printf("%c", b);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement