Floyd's triangle is a right-angled triangular array of natural numbers as shown below:
Write a program to print the Floy'd triangle.
Source Code
k=1
for i in range(1,6):
for j in range(1,i+1):
print(k,end=' ')
k=k+1
print()
Output
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15