Created
January 26, 2021 02:39
-
-
Save Michaelgathara/5619e9b186699ff7418d0c4676560d39 to your computer and use it in GitHub Desktop.
A simple python program to create a matrix
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
def buildMatrix(x, y): | |
for r in range(1,x): | |
for c in range(1,y): | |
n = r*c | |
print(n, end=' ') | |
print() | |
buildMatrix(5,5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment