/* C Program To Find The Result of 1^2 + 2^2 + 3^3 + .... Up To 10 */
For any query regarding c/c++ feel free to contact me on khimanichirag@gmail.com or comment below. I try my best to solve it.
For any query regarding c/c++ feel free to contact me on khimanichirag@gmail.com or comment below. I try my best to solve it.
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0,sum=0;
clrscr();
for(i=1;i<=10;i++)
{
sum=sum+i*i;
}
printf("The sum of given series is: %d",sum);
getch();
}
No comments:
Post a Comment