candrei98

Untitled

Dec 15th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #pragma warning(disable:4996)
  5.  
  6. void main()
  7. {
  8. char v[999];
  9. int n, i;
  10.  
  11. scanf("%d", &n);
  12. scanf("%s", &v);
  13.  
  14. for (i = 0; i < strlen(v); i++) {
  15. printf("%c", v[i] + n);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment