Created
December 24, 2021 12:33
-
-
Save CodeMaster7000/3906afb85d8823388e7ef34ff5841e6f to your computer and use it in GitHub Desktop.
Floyd's Triangle in Python 3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
row = int(input('Enter number of rows: ')) | |
number = 1 | |
print('\n') | |
for i in range(1,row+1): | |
for j in range(1, i+1): | |
print(number, end='\t') | |
number += 1 | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment