PRINTING FLOYD'S TRIANGLE PATTERN IN PYTHON!!

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@leoumesh·
0.000 HBD
PRINTING FLOYD'S TRIANGLE PATTERN IN PYTHON!!
```

Number=int(input("Enter the number of rows to be printed: "))
first=1
for row in range (1,Number+1):
    for col in range (1, row+1):
        print(first,end=" ")
        first=first+1
    print()

```

A sample output as executed by me is as follows:


![Screenshot_2.png](https://cdn.steemitimages.com/DQmUFQx21FKi4XkEFrM6pky3Hv6JhNhTgVbMQbUf33AjkoZ/Screenshot_2.png)



Copy/paste this code and run it online [here](https://www.onlinegdb.com/online_python_compiler).
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,