Well, I have this message to decrypte the following way: each letter should be moved two rows ahead, so if we have ABC, the output should be CDE.
I've made the code, seems fine to me but doesn't work and I think there's a bug in my reasoning. Could you take a look?
Code:
#include <stdio.h>
#include <string.h>
int main(void){
char msg[]="g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj";
int i,k,len;
len=strlen(msg);
for(i=0;i<len;i++){
printf("%c",msg[i+2]);}
printf("\n");
return 0;
}