Advertisement

Write a program that sum of the series: 1^4+2^4+.......+100^4


#include<stdio.h>
#include<conio.h>
void main()
{
int i=1;b=0;
while(i<=100)
{
b=b+pow(i,4);
i=i+1;
}
printf("Result:%d",b);
getch();
}

No comments:

Post a Comment

Please comment bellow. Share your knowledge