From e9591ba9ac6a62f181600db5f23fce7a5c567626 Mon Sep 17 00:00:00 2001 From: import-prospero <69780029+import-prospero@users.noreply.github.com> Date: Sat, 17 Oct 2020 17:00:22 +0530 Subject: [PATCH] added floyd triangle program using python....issue #62 "added the floyds triangle using python...it is working fine ..please merge it...please also add the hacktoberfest accepted label" --- floyd.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 floyd.py diff --git a/floyd.py b/floyd.py new file mode 100644 index 0000000..ee453b6 --- /dev/null +++ b/floyd.py @@ -0,0 +1,12 @@ +r=int(input("enter number of rows: ")) +#t=(r*(r+1))//2 +c=1 +for i in range(r): + for j in range(i+1): + print(c, end=" ") + c+=1 + print("") + + + +