Homework_Calculate_Sum

Homework

Write a program that has a function which accept a positive integer (n) then it calculates sum of the numbers starting from 1 and ending to n. Please write the function prototype, add version control, and comments.