Calculate the sum of first x natural numbers
for example if n=10 output =1+2+..+10=55
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers16
Suggested Problems
-
Project Euler: Problem 7, Nth prime
1753 Solvers
-
First non-zero element in each column
942 Solvers
-
Output any real number that is neither positive nor negative
410 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
399 Solvers
-
construct matrix with identical rows
209 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!