(Solved): In C++ please
Write a function that takes an integen \( n \) and return ...
In C++ please
Write a function that takes an integen \( n \) and returns the sum (double data-type) of the squanes of the first \( \pi \) positive integers. For example, sum-of_squanes \( (3\} \) should return \( 1 \times 2+2^{\wedge} 2+3^{\wedge} 2 \) \( =14 \).
Write a C++ program contains function called array_min, that takes array of integers and integer size as parameters, then the function will calculate and print the minimum value in the array without returning value.
Write a ct+ program that reads in a list of integens from the user, until the user enters the value \( -1 \). The program should then print out the sum of even numbers in the 11st.