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

C-Program to know whether the character is vowel or not

#include<stdio.h> int main() {   char c;   printf("Enter a character to know whether it is vowel or not\n");   scanf("...