Wednesday, August 3, 2016

Program in C for 2 12 22 32 series upto 10th term

/* Program for 2 12 22 32 series upto 10th term */
#include<stdio.h>
#include<conio.h>
void main()
{
    int a=2,i;
    i=1;
    do
    {
        printf(" %d ",a);
        a=a+10;
        i++;
    }
    while(i<=10);
    getch();
}

0 comments:

Post a Comment