Advertisement

This is also an interesting series.


#include<conio.h>
#include<stdio.h>
void main()
{         clrscr();
                  int i,a,n;
                  printf("enter limit=");
                  scanf("%d",&n);
                  a=3;
                  printf("%d",a);
                  for(i=1;i<=n;i++)
                  {a=a+2;
                   printf(" %d",a);}
                    getch();}

No comments:

Post a Comment

Please comment bellow. Share your knowledge