// find the sum of the first 'number_to_sum' squares using a function. #include using namespace std; int sumofsquares(int); //function prototype /* function to find sum of the squares */ int sumofsquares(int n) { int sum = 0; for (int i = 1; i <= n; i++) sum += (i * i); return (sum); } int main() { int number_to_sum; cout << "Enter the number of squares to be summed: "; cin >> number_to_sum; cout << sumofsquares(number_to_sum) << " is the sum of the first " <