candrei98

Untitled

Dec 15th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 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[9999];
  9.     int n;
  10.  
  11.     scanf("%d", &n);
  12.     scanf("%s", &v);
  13.  
  14.     printf("\n\n");
  15.  
  16.     for (int i = 0; i < strlen(v); i++) {
  17.         printf("%c", v[i] + n);
  18.     }
  19.  
  20.     exit(0);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment