Infosys Interview Question

a program for a triangle pattern in C.