Zone for ultimate tech and study update
Advertisement
Write a program that sum of the series: 1^2+2^2+3^2+.........+100^2
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i=1,b=0;
while (i<=100)
{
b=b+i*i;
i=i+1;
}
printf("Result::%d",b);
getch();
}
No comments:
Post a Comment
Please comment bellow. Share your knowledge
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Please comment bellow. Share your knowledge