Tuesday, July 26, 2016

Program in C For Series 2,5,10,17 ...... upto nth term and sum too

/* Program in C For Series 2 5 10 17 ...... upto nth term and sum too */
#include<stdio.h>
#include<conio.h>
void main()
{
    int i,calc=0,num=0,sum=0;
    printf("\n Enter any number :");
    scanf("%d",&num);
    for(i=1;i<=num;i++)
    {
    calc=i*i+1;
    printf(" %d ",calc);
    sum=sum+calc;
    }
    printf("\n Sum = %d :",sum);
    getch();
}

1 comment:

  1. Program In C For Series 2,5,10,17 ...... Upto Nth Term And Sum Too ~ Junior Computer Technician >>>>> Download Now

    >>>>> Download Full

    Program In C For Series 2,5,10,17 ...... Upto Nth Term And Sum Too ~ Junior Computer Technician >>>>> Download LINK

    >>>>> Download Now

    Program In C For Series 2,5,10,17 ...... Upto Nth Term And Sum Too ~ Junior Computer Technician >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete