sdut oj 1204 C语言实验—字符编码

#include <stdio.h>
#include <string.h>


int main()
{
    char s[5];
    int i;
    gets(s);
    for(i = 0; i <= 4; i++)
    {
        s[i] += 4;
    }
    printf("password is ");
    for(i = 0; i <= 4; i++)
        printf("%c", s[i]);
    return 0;
}

猜你喜欢

转载自blog.csdn.net/zx__zh/article/details/78894493