checkers pattern by takotako

main(){int i,j,m,n;scanf("%d%d",&m,&n);for(i=0;i<m;i++)for(j=0;j<n;j++){i%2?printf("%d",j%2):printf("%d",j%2?0:1);j<n-1?printf(" "):puts("");}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page