(x=gets.to_i).times{|i|puts ("X "*x)[i,x]}
8
X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!