Opening Ceremony

Bhim Higher Secondary School Suntopar, Dolakha

Opening Ceremony

Bhim Higher Secondary School Suntopar, Dolakha

JCT Students (First Batch(2069-2070))

Bhim Higher Secondary School Suntopar, Dolakha

Opening Ceremony

Bhim Higher Secondary School Suntopar, Dolakha

Opening Ceremony

Bhim Higher Secondary School Suntopar, Dolakha

Showing posts with label Series. Show all posts
Showing posts with label Series. Show all posts

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();
}

Monday, August 1, 2016

Program in C for 5 25 125 625 series upto 10th term using Do while loop

/* 5 25 125 625 series upto 10th term */
#include<stdio.h>
#include<conio.h>
void main()
{
    int a=5,i;
    i=1;
    do
    {
        printf("%d ",a);
        a=a*5;
        i++;
    }
    while (i<=10);
    getch();
}

Program in C for 1 4 9 16 series upto 20th term using Do- While Loop

/* 1 4 9 16 series upto 20th term */
#include<stdio.h>
#include<conio.h>
void main()
{
    int a,i;
    i=1;
    do
    {
        a=i*i;
        printf("%d ",a);
        i++;
    }
    while (i<=20);
    getch();
}

Program in C for 1 5 9 series upto 10th term

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

Tuesday, July 26, 2016

Program in C For Series 2 4 8 16...... upto nth term

/* Program in C For Series 2 4 8 16...... upto nth term */
#include<stdio.h>
#include<conio.h>
void main()
{
    int a=2,i,num;
    printf("\n Enter any number :");
    scanf("%d",&num);
    for(i=1;i<=num;i++)
    {
    printf(" %d ",a);
    a=a*2;
    }
    getch();
}