#include<stdio.h>//header file
#include<conio.h>//header file
void main() //starting of the main() function
{
int c=0,i,n; //declaration of the variables
clrscr();
printf("program that calculates the sum of squares of natural nos.");
printf("\n\n\n\t\t------------INPUT-------------");
printf("\n\nenter the range");//taking input from the user
scanf("%d",&n);
for(i=1;i<=n;i++)
c=c+(i*i);
printf("\n\n\n\t\t------------OUTPUT------------");
printf("\n\nthe sum of the squares is =%d",c);//printing output
getch();
}