我为加密词创建了以下C代码.(caesar cipher)当我运行它时,它总是打印U.如果你运行它,你会看到它.
#include<stdio.h>
int main(void){
int x;
char en[100];
fgets(en,100,stdin);
for(x=0;x<100;x++){
if(en[x]=='\0'){
break;
}
en[x]=((en[x]-71-3)%26)+97;
}
printf("%s\n",en);
}
Run Code Online (Sandbox Code Playgroud) c ×1