Create a program that will solve given problem. Store the answer in a variable. Use a function aside from main function that returns a value. Use "for loop"