Advertisement
Aminpro

[ECP 1016]Tutorial 5 Question 3

Jul 15th, 2012
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. //https://www.facebook.com/AminproPastebin
  2.  
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7.     char a;
  8.     printf("Press any character:");
  9.     scanf("%c", &a);
  10.     if(a>=65){
  11.         if(a<=90){
  12.             printf("Valid range\n");
  13. }
  14.             else
  15.                 printf("not valid\n");
  16.                
  17.  
  18. }
  19.  
  20.  
  21.  
  22.  
  23. return 0;
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement