SourceCodePoint
Wednesday, 6 July 2016
Write a MATLAB program for display star pattern
Write a MATLAB program for display star pattern as like
*
**
***
****
*****
Code:
clc;
clear;
for
r = 1:5
for
c = 1:r
fprintf(
'*'
);
end
fprintf(
'\n'
);
end
Output:
1 comment:
Unknown
17 November 2017 at 09:32
This comment has been removed by the author.
Reply
Delete
Replies
Reply
Add comment
Load more...
‹
›
Home
View web version
This comment has been removed by the author.
ReplyDelete