{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

line of stars function

line of stars function - %lineOfStars(0 =>%lineOfStars(5...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 %lineOfStars: number => display row of asterisks %Description: prints a single row of asterisks, length given by the %parameter. %Examples %lineOfStars(3) => ***
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %lineOfStars(0) => %lineOfStars(5) => ***** function = lineOfStars(len) if (len <= 0) fprintf('\n') else fprintf('*') lineOfStars(len - 1) end...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online