006-001-011
For Loop: Calculate Sum
Medium
Problem Description
For Loop: Calculate Sum
Learning Objective: Understand how to perform cumulative calculations using for loops
Overview
Create a program that calculates and outputs the sum of integers from 1 to 10.
Specifications
- Use a for loop to iterate from 1 to 10
- Accumulate the sum inside the loop
- Output the final sum
Output Format
Sum: 55
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
