Write a program that inputs ten values in an array and calculates the sum of these values.
Write a program that inputs ten values in an array and calculates the sum of these values. So let’s Write Code: Let’s build logic First: Algorithm of Code: Step 1: Start Step 2: Declare and intialize an array of 10 elements. Step 3: Declare and initialize a variable s=0 for store the values of sum….