Friday, 1 September 2017

Series Program - 11

2 15 41 80 132 197 275 366 470 587

#include<stdio.h>


int main()
{
    int a=2,i,n=10;
    for(i=1;i<=n;i++)
    {
        printf("%d ",a);
        a+=13*i;
    }
    return 0;
}

No comments:

Post a Comment