Intel Corporation Interview Question

How to display a right angled triangle pattern by using c program