create account

PRINTING FLOYD'S TRIANGLE PATTERN IN PYTHON!! by leoumesh

View this thread on: hive.blogpeakd.comecency.com
· @leoumesh ·
$1.85
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).
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 151 others
properties (23)
authorleoumesh
permlinkprinting-floyd-s-triangle-pattern-in-python
categorypython
json_metadata{"tags":["python","code","programming","coding","learning"],"image":["https://cdn.steemitimages.com/DQmUFQx21FKi4XkEFrM6pky3Hv6JhNhTgVbMQbUf33AjkoZ/Screenshot_2.png"],"links":["https://www.onlinegdb.com/online_python_compiler"],"app":"steemit/0.2","format":"markdown"}
created2020-03-13 13:22:27
last_update2020-03-13 13:22:27
depth0
children1
last_payout2020-03-20 13:22:27
cashout_time1969-12-31 23:59:59
total_payout_value0.964 HBD
curator_payout_value0.889 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length474
author_reputation212,340,493,251,438
root_title"PRINTING FLOYD'S TRIANGLE PATTERN IN PYTHON!!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,323,119
net_rshares8,608,270,285,754
author_curate_reward""
vote details (215)
@upvotebank ·
<center>UpvoteBank</center> | <center>Your upvote bank</center>
------------ | -------------
![__2.jpg](https://steemitimages.com/DQmfDxvv4NLs3knYT7B2mHgE5ArnkheNmDSLydKKTfBwokj/__2.jpg) | This post have been upvoted by the @UpvoteBank service. Want to know more and receive "free" upvotes click [here](https://steemit.com/steemit/@upvotebank/gzsr5aw6)
properties (22)
authorupvotebank
permlink20200313t132242159z
categorypython
json_metadata{"tags":["comment"],"app":"steemjs/comment"}
created2020-03-13 13:22:42
last_update2020-03-13 13:22:42
depth1
children0
last_payout2020-03-20 13:22:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length354
author_reputation44,533,286,469,385
root_title"PRINTING FLOYD'S TRIANGLE PATTERN IN PYTHON!!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,323,130
net_rshares0