Takes two integer command-line arguments n and width and prints an n-by-n pattern, with a zero (0) for each element whose distance from the main diagonal is strictly more than width, and an asterisk (*) for each entry that is not, and two spaces between each 0 or *.
-
Notifications
You must be signed in to change notification settings - Fork 0
Takes two integer command-line arguments n and width and prints an n-by-n pattern, with a zero (0) for each element whose distance from the main diagonal is strictly more than width, and an asterisk (*) for each entry that is not, and two spaces between each 0 or *.
andysanr/BandMatrix
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Takes two integer command-line arguments n and width and prints an n-by-n pattern, with a zero (0) for each element whose distance from the main diagonal is strictly more than width, and an asterisk (*) for each entry that is not, and two spaces between each 0 or *.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published