#include<stdio.h>
#include<stdlib.h>
/*题目:输出国际象棋棋盘*/
int main()  {
//system("color 1F");  // 设定显示框为蓝底白字
system("mode con cols=80 lines=30");  //固定显示框尺寸
/******************************************程序主体分割线(顶部)*************************/
int a,b;
for(a=1;a<=8;a++){
    for(b=1;b<=8;b++)
        if((b+a)%2==0)
        printf(""); 
        else
        printf(""); 
    printf("\n");
}
/******************************************程序主体分割线(底部)***************************/
return 0;
}

 

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
相关资源
相似解决方案