//Dvostruka suma po n i m (k^6 – j^3)/(k+j)   k=1,n   j=1,m

#include <stdio.h>

#include <math.h>

int main()

    {

    double n,s=0,k=1, w=0, j=1,m;

    printf("Unesi n=");     scanf("%lf",&n);

    printf("Unesi m=");     scanf("%lf",&m);

    printf("--------------------------\n");

    printf("clan reda     k        j  \n");

    printf("--------------------------\n");

    for(k=1; k<=n; k++)

    {

            for(j=1; j<=m; j++)

            {

            w=(pow(k,6)-pow(j,3))/(k + j );   // Izracunavanje clana reda

            s=s+w;                                       // Kumuliranje clana reda

            printf("%6.2lf        %3.lf      %3.lf\n",w,k,j); // Prikaz clana reda, k i j

            }

    }

    printf(" s= %.2lf\n", s);                       //Prikaz na ekranu sume reda

    return 0;

 

    }