The programmer blog

This is my personal blog. Im a programmer.i would like to share programs as well as my personal memories through this blog... dedicted to all my friends

Thursday, January 29, 2009

BASIC PROGRAMS

/* PROGRAM TO DIVIDE 2 NUMBERS */

/*PROGRAM BY: GAGZ*/




void main()
{
float x,y,result;
clrscr();
printf('\n enter x and y:");
scanf("%f%f",&x,&y);
if(y!=0)
{
result=x/y;
printf("\n the result is %f ",result);
}
else
{
printf("\n MATH ERROR");
exit();
}
getch();
}

Labels:

Monday, January 26, 2009

INTRODUCTION TO C ...A BASIC C PROGAM

/*---------- program begins here-----------------*/
/*A SIMPLE PROGRAM TO ADD TWO NUMBERS*/
/* program by:GAGZ */





void main()
{
int x,y,sum;
clrscr();
printf("\n enter 2 numbers:");
scanf("%d%d",&x,&y);
sum=x+y;
printf("\n the sum of two numbers is %d",sum);
getch();
}

/*------ *program ends here*--------*/

this program just adds 2 integer numbers and dispays the sum, very simple rite???.. the aim of showing this program here is for reminding the readers who r out of touch with c programming..more programs will be updated .

Labels:

Friday, January 23, 2009

WHAT IS THIS BLOG ALL ABOUT

This is my personal blog. This blog is all about me my friends and my college life. this blog is all about memories that i would like to put forward for my readers. this blog had been inactive for quit sometime but i assure u it wont happen again.dedicating this blog to all my friends.




GAGZ

Friday, January 09, 2009

programmer is back!!!

hey folkz itz gr8 to get back ma old blog!!!!

Monday, January 30, 2006

hi

gagan sagar

Spread Firefox Affiliate Button