let f n = for i = 1 to n do for j = 1 to n do print_string [|"■"; "□"|].((i + j) mod 2) done; print_newline () donelet () = List.iter f [-1; 1; 2; 3; 10]
Standard input is empty
■ ■□ □■ ■□■ □■□ ■□■ ■□■□■□■□■□ □■□■□■□■□■ ■□■□■□■□■□ □■□■□■□■□■ ■□■□■□■□■□ □■□■□■□■□■ ■□■□■□■□■□ □■□■□■□■□■ ■□■□■□■□■□ □■□■□■□■□■
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!