Monday, November 2

DRDO 2009 Result Out!

The Results of DRDO Exam held on September 6th 2009 is been announced. You will have to get Application No. or Name that was given while applying.

Please visit http://rac.in/ for more details.

All the best!!

Saturday, October 31

Bubble sort using C programming

#include<stdio.h>
#include<conio.h>

void main()
{
int array[25], num, i, j, temp;
clrscr();
printf ("Please Enter the maximum elements\n");
scanf ("%d",&num);
printf ("Please Enter the elements to be sort:\n");
for (i = 0; i < num; i++)
scanf ("%d", &array[i]);
for (j = 0; j < num - 1; j++){
temp = array[0];
for (i = 1; i < num; i++){
if (array[i] < temp){
array[i - 1] = array[i];
array[i] = temp;
}
else
temp = array[i];
}
}
       printf ("Sorted Elements are:\n");
       for (i = 0; i < num; i++)
printf("%d\n", array[i]);


}

To find smallest among three using function with pointers

#include<stdio.h>
#include<conio.h>
int small(int *a, int *b, int *c);
void main()
{
int num1, num2, num3, smallnum;
clrscr();
printf("Enter the 3 numbers\n");
scanf("%d%d%d",&num1, &num2, &num3);
smallnum = small (&num1, &num2, &num3);
printf("Smallest number = %d", smallnum);
getch();
}

int small(int *a, int *b, int *c)
{
int result = *a;
if ( *a > *b)
result = *b;
if (result > *c)
result = *c;
return result;

}

To find sqaure of numbers using C program!

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,squarea,squareb;
clrscr();
printf("Enter the 2 numbers to find its square\n");
scanf("%d%d",&a,&b);
squarea=a*a;
squareb=b*b;
printf("squarea = %d, squareb = %d", squarea, squareb);
getch();
}

To display a triangle using C Programming!

// to display a triangle using Graphics
#include<stdio.h>
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm,x,a,b;
initgraph (&gd,&gm,"c:\\tc\\bgi ");
while(!kbhit()) //display a triangle till a key is pressed
{
setcolor(WHITE);
line(300,200,400,300);
line(300,200,200,300);
line(200,300,400,300);
}
getch();
}

Friday, October 30

Program to find Odd numbers in the given range using C++

#include<iostream.h>
#include<conio.h>
void main()
{
            int rem, Start_Num, End_Num;
            clrscr();
            cout <<" Please Enter the Start and End numbers:\n";

            cin >> Start_Num >> End_Num;
            cout <<" The odd numbers in the ranges are \n";

            while  (Start_Num <= End_Num){
                        rem = Start_Num % 2;
                        if (rem != 0)
                                    cout<<"\t" <<Start_Num;

                        Start_Num++;
            }
}

BSNL Junior Telecom Officer 2009 Results Declaration

The BSNL JTO Exam 2009 result is been declared. Written Exam of BSNL JTO was organized by BSNL on 21st June, 09 to recruit around 3945 Junior Telecom Officers.




All the best!!