Infosys interview question

a program for a triangle pattern in C.