how can someone make a 1234,123,12,1 pattern in a triangle
Show older comments
when n=1,how can I do a pattern from 1:n so it printed out like that(using for or while loop)
123456
12345
1234
123
12
1
3 Comments
James Tursa
on 23 Dec 2015
This sounds like homework. Are you supposed to use loops, or are you allowed to use vectorized methods?
Mustafa müfit Tekeli
on 23 Dec 2015
John D'Errico
on 23 Dec 2015
Please stop asking the same question repeatedly. Asking the same question over and over again will not get you a better answer.
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!