Practice ยท 1 of 4
Sum to N
Implement int sum_to(int n) returning 1+2+...+n using a loop (not the closed formula).
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Loop Gym
Practice ยท 1 of 4
Implement int sum_to(int n) returning 1+2+...+n using a loop (not the closed formula).
Difficulty: beginner
Back to lesson: Practice: Loop Gym