任务1.1代码
1 #include <stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 8 printf(" O \n"); 9 printf("<H>\n"); 10 printf("I I\n"); 11 12 return 0; 13 }
任务1.1结果
任务1.2代码
1 #include <stdio.h> 2 int main() 3 { 4 char a[] = " O "; 5 char b[] = "<H>"; 6 char c[] = "I I"; 7 printf("%.3s %s\n",a,a); 8 printf("%.3s %s\n",b,b); 9 printf("%.3s %s\n",c,c); 10 11 return 0; 12 }
任务1.2结果
标签:11,10,%.,3s,char,实验,printf From: https://www.cnblogs.com/sand-bule/p/17735841.html