Sum 1 to 5 Problem

Sum 1 to 5 Problem — ExecCode School DSA Practice

Solve the Sum 1 to 5 problem on ExecCode. Free online school DSA practice in Loops. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given the input needed to solve Sum 1 to 5. Your task is to add the numbers 1, 2, 3, 4, and 5 together. You can use a loop or add them one by one. Print only the final total.

Examples

Input ; Output 15. Input ; Output 15

Constraints

None.

Practice Sum 1 to 5 free on ExecCode. Browse DSA problems, topic map, and placement guides.