Created
September 17, 2019 06:13
-
-
Save lasagnaphil/f332317ce112ca0c9c1099a6a1dc815d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char** argv) { | |
int offset; | |
char c; | |
scanf("%d\n", &offset); | |
while (scanf("%c", &c) != EOF && c != '\n') { | |
printf("%c", 'A' + ((c - 'A' + offset) % 26)); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment