fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. for(int i=1;i<=8;i++){
  6. for(int j=1;j<=8;j++){
  7.  
  8. if(j%2==0){
  9. printf("■");
  10. }else{
  11. printf("□");
  12. }
  13. }
  14. printf("\n");
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
□■□■□■□■
□■□■□■□■
□■□■□■□■
□■□■□■□■
□■□■□■□■
□■□■□■□■
□■□■□■□■
□■□■□■□■