how can someone make a 1234,123,12,1 pattern in a triangle
Mostrar comentarios más antiguos
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 comentarios
James Tursa
el 23 de Dic. de 2015
This sounds like homework. Are you supposed to use loops, or are you allowed to use vectorized methods?
Mustafa müfit Tekeli
el 23 de Dic. de 2015
John D'Errico
el 23 de Dic. de 2015
Please stop asking the same question repeatedly. Asking the same question over and over again will not get you a better answer.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!