Skip to content

Commit 0933dfc

Browse files
authored
Update flyod.py
The Floyd's triangle is a right-angled triangle that contains consecutive natural numbers. For example if we have defined 5 rows in Floyd's triangle, it generates the following output 1 2 3 4 5 6 7 8 9 10
1 parent e4cbb58 commit 0933dfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/flyod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
def flyod():
2-
size = int(input("Enter the range: "))
2+
size = int(input("Enter the range: "))
33
print("\nFLOYD'S TRIANGLE with numbers: \n")
44
k = 1
55
# 2 for loops, one for column looping another for row looping

0 commit comments

Comments
 (0)