Wednesday, September 17, 2008

Programming of SUM OF CUBES OF THE SERIES 13+23+33+---------+n3 in c language



void main()
{
  int r;
  clrscr();
  printf("\nEnter the number range: ");
  scanf("%d",&r);
  printf("\nSum of the cubes of the series is: %d",(r*(r+1)/2)*(r*(r+1)/2));
  getch();
}

No comments:

Post a Comment

Thanks to given comments.......

My Blog List