write a c program to print following series

series program in c
write a c program to print following series
2 15 41 80 132 197 275 366 470 587

#include<stdio.h>
int main()
{
    int x=2,j,n=10;
    for(j=1;j<=n;j++)
    {
        printf("%d ",x);
        x+=13*j;
    }
}

Related Posts