Find the sum of squares C Program

How to write a C program to find the sum of squares in C Programming ?


#include <stdio.h>

int main()
{
    int i;
    int sum = 0;

    for(i = 1; i <= 100; i++)
        sum = sum + i * i;

    printf("%d\n", sum);

    return 0;
}



Learn More :