Pattern 1; 2 3; 4 5 6; 7 8 9 10
Show older comments
Hello everyone, I wish you healthy days.
How can i do that pattern by using just 'for, if else or while command?
the question is that for example i input number 5, matlab giving me (4 5 6). When i input 7 matlab giving me ( 7 8 9 10)
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
16 17...
Sorry for my bad english and thanks for your help
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!