Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define TOP 20
- int main()
- {
- int c, i, arr[TOP];
- i = 0;
- for(i = 0;i < TOP;i++)
- arr[i] = 0;
- while((c = getchar()) != EOF)
- {
- arr[i++] = c;
- putchar(arr[i-1]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment