Summation of integers - MATLAB Cody - MATLAB Central

Problem 47194. Summation of integers

Difficulty:Rate
Add connsecutive numbers up to givven number x.
ex: x=5
y=1+2+3+4+5

Solution Stats

82.84% Correct | 17.16% Incorrect
Last Solution submitted on Dec 06, 2024

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers108

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page