C program to print floyd's triangle

C program to print floyd's triangle

Input:

Enter the number of rows in the triangle:
5

Output:

 1 
 2  3 
 4  5  6 
 7  8  9 10 
11 12 13 14 15 


Implementation: