#include <stdio.h>
#include <string.h>
int main() {
char frase[200];
for (int i
= 0; i
< strlen(frase
); i
++) { if (frase[i] >= 'A' && frase[i] <= 'Z') { //só altera se estiver na faixa correta
if (frase[i] > 'W') { //trata os casos que precisam girar a tabela
frase[i] += -23;
} else {
frase[i] += 3;
}
}
}
}
//https://pt.stackoverflow.com/q/213908/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKCkgewogICAgY2hhciBmcmFzZVsyMDBdOwogICAgcHJpbnRmKCJTdHJpbmc6ICIpOwogICAgc2NhbmYoIiUyMDBzIiwgZnJhc2UpOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBzdHJsZW4oZnJhc2UpOyBpKyspIHsKICAgICAgICBpZiAoZnJhc2VbaV0gPj0gJ0EnICYmIGZyYXNlW2ldIDw9ICdaJykgeyAvL3PDsyBhbHRlcmEgc2UgZXN0aXZlciBuYSBmYWl4YSBjb3JyZXRhCiAgICAgICAgICAgIGlmIChmcmFzZVtpXSA+ICdXJykgeyAvL3RyYXRhIG9zIGNhc29zIHF1ZSBwcmVjaXNhbSBnaXJhciBhIHRhYmVsYQogICAgICAgICAgICAgICAgZnJhc2VbaV0gKz0gLTIzOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgZnJhc2VbaV0gKz0gMzsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KICAgIHByaW50ZigiU3RyaW5nOiAlcyIsIGZyYXNlKTsKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjEzOTA4LzEwMQ==