Skip to content

Instantly share code, notes, and snippets.

@lasagnaphil
Created September 17, 2019 06:13
Show Gist options
  • Save lasagnaphil/f332317ce112ca0c9c1099a6a1dc815d to your computer and use it in GitHub Desktop.
Save lasagnaphil/f332317ce112ca0c9c1099a6a1dc815d to your computer and use it in GitHub Desktop.
#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