Code for PROGRAM TO FIND SUM OF SQUARE UP TO N NUMBERS in C Programming
#include<stdio.h>
#include<conio.h>
void main()
{
int n,i,sum = 0;
clrscr();
printf("Enter the number:: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
sum += i * i;
printf("sum :: %d",sum);
getch();
}
/*
**********
OUTPUT
**********
Enter the number:: 3
sum :: 14
*/