为啥会输出个繁体字
#include <stdio.h>void main()
{
int k,i;
char a[100];
gets(a);
scanf("%d",&k);
k=k%26;
for(i=0;a[i]!='\0';i++)
{
if(a[i]>='A' && a[i]<='Z')
{
a[i]=a[i]+k;
if(a[i]>'Z')
a[i]=a[i]-26;
}
else if(a[i]>='a' && a[i]<='z')
{
a[i]=a[i]+k;
if(a[i]>'z')
a[i]=a[i]-26;
}
printf("%c",a[i]);
}
printf("\n");
}