diff --git a/rot13.c b/rot13.c new file mode 100644 index 0000000..d76641f --- /dev/null +++ b/rot13.c @@ -0,0 +1,10 @@ +#include + +int main(void) { + char user_input; + printf("Bitte beliebigen buchstaben einfügen: "); + scanf("%c", &user_input); + char rot13 = (user_input - 97 + 13) % 26 + 97; + printf("Rot13(%c) = %c\n", user_input, rot13); + return 0; +}