#include int squares(int n) { int finalSum = 0; for(int i = 1;i <= n;i++) finalSum = finalSum + (i*i); return finalSum; } int main() { printf("squares(5): %d\n", squares(5)); printf("squares(10): %d\n", squares(10)); printf("squares(25): %d\n", squares(25)); printf("squares(100): %d\n", squares(100)); }