draw the following pattern with asterisks. For example, for n=6
'************'
'***** *****'
'**** ****'
'*** ***'
'** **'
'* *'
'* *'
'** **'
'*** ***'
'**** ****'
'***** *****'
'************'
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers31
Suggested Problems
-
Maximum running product for a string of numbers
2259 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3747 Solvers
-
Back to basics 18 - justification
211 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
699 Solvers
-
Determine the length of a string of characters
268 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Hi Asif tell my why this code wont work??
B=char(tril(ones(5),0)*42)
y=[flipud(B) B';B fliplr(B)]
Compare unique elements in your solution with the ones in test suite