Back

Floyd's Triangle

Created 3 years ago
41 Views
1 Comments
Shivsurya
@Shivsurya
Shivsurya
@ShivsuryaProfile is locked. Login

I couldn't pass the test case even though the required output is attained.

here is my code.

R=int(input())

n=1

for row in range(1,R+1):

for col in range(1,row+1):

print(n,end=" ")

n+=1

print()

Comments
Please login to comment.