candrei98

Untitled

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