Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <ctype.h>
- #include <malloc.h>
- #define lim 101
- int main()
- {
- int i;
- char c,A[lim];
- i = 0;
- while (i < lim-1) {
- c = getchar();
- if (c == EOF)
- break;
- if (c == '\n')
- break;
- if(isdigit(c)){
- c = c -'0';
- c = 9 - c;
- c = c + '0';
- }
- A[i++] = c;
- }
- A[i] = '\0';
- printf("%s", A);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement