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("") + + + +