draw the following pattern with asterisks. For example, for n=6
'************'
'***** *****'
'**** ****'
'*** ***'
'** **'
'* *'
'* *'
'** **'
'*** ***'
'**** ****'
'***** *****'
'************'
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers28
Suggested Problems
-
2163 Solvers
-
1498 Solvers
-
Getting the indices from a matrix
718 Solvers
-
455 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1710 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