#include <stdio.h>
void caesar(char bemenet[], char eredmeny[], int n){
int i=0;
for(i= 0; bemenet[i] != '\0'; i++) {
// Compute the position of the replacement letter
int pos = (bemenet[i] - 'a' + n) % 26;
// Place the letter into the output.
eredmeny[i] = 'a' + pos;
}
eredmeny[i] = '\0';
}
int main(void) {
char tomb1[]="caesarkodolas";
char tomb2[250];
caesar(tomb1,tomb2,10);
return 0;
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGNhZXNhcihjaGFyIGJlbWVuZXRbXSwgY2hhciBlcmVkbWVueVtdLCBpbnQgbil7IAoJaW50IGk9MDsKICAgIGZvcihpPSAwOyBiZW1lbmV0W2ldICE9ICdcMCc7IGkrKykgewogICAgICAgIC8vIENvbXB1dGUgdGhlIHBvc2l0aW9uIG9mIHRoZSByZXBsYWNlbWVudCBsZXR0ZXIKICAgICAgICBpbnQgcG9zID0gKGJlbWVuZXRbaV0gLSAnYScgKyBuKSAlIDI2OwogICAgICAgIC8vIFBsYWNlIHRoZSBsZXR0ZXIgaW50byB0aGUgb3V0cHV0LgogICAgICAgIGVyZWRtZW55W2ldID0gJ2EnICsgcG9zOyAKICAgIH0gCiAgICBlcmVkbWVueVtpXSA9ICdcMCc7IAp9CgppbnQgbWFpbih2b2lkKSB7CmNoYXIgdG9tYjFbXT0iY2Flc2Fya29kb2xhcyI7CmNoYXIgdG9tYjJbMjUwXTsKCmNhZXNhcih0b21iMSx0b21iMiwxMCk7CgpwcmludGYoIiVzIFxuIix0b21iMik7CgpyZXR1cm4gMDsKCXJldHVybiAwOwp9Cg==