Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- //putchar suppose to output changed c, in case putchar(c+3) there was mistake, which was not obvious for me
- //putchar put cursor at the beginning of second line, so I had to tape over it!!!
- //then i got it: it's just happened that '\n'+3 equals go to the start of current line
- int main()
- {
- int c;
- while((c=getchar())!=EOF)
- {
- // putchar(c);
- //putchar(++c);
- putchar(c+3);//
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement