Skip to content

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

andysanr/BandMatrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BandMatrix

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 *.

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

No packages published

Languages