int main()
{
char cypher[4]=“愛”,代碼[4];
const int N = 26
int i=0,n;
printf("請輸入密鑰:\ n ");
scanf("%d ",& ampn);
printf("原詞為%s \n ",cypher);
for(;我& lt4;i++)
{
if(cypher[I]& gt;z’)
cypher[I]=((cypher[I]-' a ')+N)% N+' a ';
其他
cypher[I]=((cypher[I]-' A ')+N)% N+' A ';
}
printf((“加密的字是%s,cypher);
返回0;
}