#include<stdio.h>
int main()
{
int n, i, sum = 0;
printf("Enter the number : ");
scanf("%d", &n);
for (i = 1; i <= n; i++)
sum += i * i;
printf("sum : %d", sum);
return 0;
}
Enter the number : 5
sum : 55
FREE JOB ALERT & ONLINE TUTORIALS
#include<stdio.h>
int main()
{
int n, i, sum = 0;
printf("Enter the number : ");
scanf("%d", &n);
for (i = 1; i <= n; i++)
sum += i * i;
printf("sum : %d", sum);
return 0;
}
Enter the number : 5
sum : 55
About Anand Aithani
hey, my self Anand Singh Aithani,
"Advance Diploma in Information Technology" Diploma Holder, and also have " Advance Diploma in Computer Hardware and Networking".
this website for helping all of you who want to grow with us ......
![]()
hey, my self Anand Singh Aithani,
"Advance Diploma in Information Technology" Diploma Holder, and also have " Advance Diploma in Computer Hardware & Networking".
this website for helping all of you who want to grow with us ......
No comments:
Post a Comment