wedNoonLecExample - for t = rows-1:k fprintf end fprintf\n...

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

View Full Document Right Arrow Icon
%{ This program asks the user for a number of rows, and prints the pattern: ..... *** ** * depending on the number of rows wanted by user %} rows = input('Enter number of rows: '); for k = 1:rows
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for t = rows:-1:k fprintf('*') end fprintf('\n') end %% name = input('Enter name: ','s'); age = 23; fprintf('Name is %s and age is %0.2f \n',name,age)...
View Full Document

This note was uploaded on 03/30/2011 for the course ENGINEERIN 127 taught by Professor Finch during the Spring '08 term at Rutgers.

Ask a homework question - tutors are online