Advertisement
iamthehxc

Untitled

Jul 21st, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #define <stdio.h>
  2. int main ()
  3. {
  4. char mystrings[8][5] = { {"ABC"},{"DEF"},{"GHI"},{"JKL"},{"MNO"},
  5. {"PQRS"},{"TUV"},{"WXYZ"} };
  6. int i,j,k;
  7. int num;
  8.  
  9. printf("Enter a number (3-digit): ");
  10. scanf("%d", &num);
  11. printf("\n");
  12.  
  13. if (num%10 == 0 || num%10 == 1)
  14. printf("Invalid input! The number should not contain 0 or 1.\n\n");
  15. else if ((num/10)%10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement