写作目的:转义字符的简单应用
#include <stdio.h>
int main()
{
int m1,m2,m3,m4;
scanf("%d %d %d %d",&m1,&m2,&m3,&m4);
printf("%-8d%-8d%-8d%-8d\n",m1,m2,m3,m4);
printf("%-8d%-8d%-8d%-8d\n",m4,m3,m2,m1);
printf("%-8d%-8d%-8d%-8d\n",m2,m1,m4,m3);
printf(“输出单引号’\n”);
printf(“输出双引号”\n");
printf(“输出反斜线\\n”);
printf(“I say:“I am ‘best’.”\n”);
printf(“用十进制ASCII码输出123abc\n”);
printf(“用八进制ASCII码输出123abc\n”);
printf(“用十六进制ASCII码输出123abc\n”);
return 0;
}
!样例输出输入:在这里插入图片描述
转义字符
最新推荐文章于 2022-04-12 22:53:55 发布