Appirio interview question

Pattern program to print X in Java, C++ or C