【习题 3.6】简易演示字符加密输出【C程序设计】
#include <stdio.h>
int main() {
char c1 = 'C', c2 = 'h', c3 = 'i', c4 = 'n', c5 = 'a';
c1 += 4, c2 += 4, c3 += 4, c4 += 4, c5 += 4;
//使用printf输出
printf("使用printf输出:\n");
printf("%c%c%c%c%c",c1,c2,c3,c4,c5);
return 0;
}
扫描二维码,在手机上阅读
收藏