Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #define DELTA 5
- int main()
- {
- char string[128], string2[128];
- scanf("%s", string);
- int len = strlen(string);
- int i;
- char c;
- for(i = 0; i < len; i++)
- {
- c = string[i] + DELTA;
- if(c > 'Z')
- c = 'A' + (c - 'Z');
- string2[i] = c;
- }
- string[i] = 0;
- puts(string);
- exit(EXIT_SUCCESS);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement