checkers pattern by rem

#include <stdio.h>\x0d
main(a){int i=0,b,c=1;scanf("%d %d",&a,&b);while(i++<a*b){printf("%d",c%2);printf((i%b)?" ":"\n");if(i%b){c++;}else if(a<4)c++;}}

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

download

return to the top page