problem 25 #include <stdio.h> int main () { int n; int sum = 0; printf("Enter a value of n: "); scanf("%d", &n); for (int i = 1; i <= n; i++) { sum += i * i; } printf("Answer of the series: %d", sum); } Copy Enter a value for n: Calculate and Display Results