Answer:
in c
Step-by-step explanation:
#include <stdio.h>
int sumSquares(int n) {
if(n == 0) return 0; else if (n == 1) return 1; else return (n*n) + sumSquares(n - 1);
}
int main() {
int mySquare;
puts("Enter mySquare : ");
scanf("%d", &mySquare);
if(mySquare < 0) mySquare *= -1;// makes mySquare positive if it was negative
printf("Sum of squares: %d", sumSquares(mySquare));
}