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

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

Fibonacci Series in C Programming using Do While Loop

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

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