ANSWERS: 3

int squareSum(int n){ int i, sum = 0; for(i = i; i <= n; i++){ sum = sum + i*i; } return sum; } That might work.

unsigned int sumsqrs(unsigned int inval) { unsigned int outval = 0; do{ outval += inval*inval; } while(inval); return outval; } Note: This calculation could easily make an unsigned int overflow. Use with caution.

You hire a developer. And the order is 42nd.
Copyright 2018, Wired Ivy, LLC