HomeRegisterLog in
This is the FIRST PINOY GSM forum in the Philippines. The Number "One PinoyGSM dot com" PINOY, Global System for Mobile communication (GSM) is a globally accepted standard for digital cellular communication. and security tools for the computer systems and networks. ^^^ PinoyGSM is the name of a standardization group. ^^^ Be One Of Us! PINOYGSM Forum. ^^^ We Are Hackers Who Would Go Beyond Technology ^^^
Google Maps
Phil. Time
Like on Facebook
Who’s HACKER?

Share | 
 

 program in c to calculate age

View previous topic View next topic Go down 
AuthorMessage
kulit™
Global Administrator
Global Administrator


Join Date : 2008-04-25
Location : Malabon City
Male Age : 32
Cell Phone # : 09273560700
Posts : 367

PostSubject: program in c to calculate age   August 30th 2012, 07:23

//program to find the age of given date of birth
//program to find the age of given date of birth
#include
#include
int main(void)
{
struct date d;
int bd,bm,by,day,m,y,cd,cm,cy;
char ch;
clrscr();
do
{
getdate(&d);
printf("\t**********WELCOME TO AGE FINDER PLACE************\n");
printf("\t*************************************************\n\n");
cd=d.da_day;
cm=d.da_mon;
cy=d.da_year;
printf("Enter the birthe date :(DD MM YYYY:)");
scanf("%d%d%d",&bd,&bm,&by);
{
if(cd{
cm=cm-1;
cd=cd+30;
day=cd-bd;
}else
day=d.da_day-bd;
}
{
if(cm{
cy=cy-1;
cm=cm+12;
m=cm-bm;
}else
m=d.da_mon-bm;
}
y=cy-by;
printf("your age is:-\n");
printf("year=%d\tmonth=%d\tday=%d\n",y,m,day);
printf("Do you want to continue: ");
scanf("%s",&ch); clrscr();
}
while(ch=='y');
getch();
}


_________________


www.1pinoygsm.com
Back to top Go down
http://kulit.5u.com
ej



Join Date : 2013-01-08
Location : Laguna
Male Cell Phone # : 09307707140
Posts : 5

PostSubject: Re: program in c to calculate age   February 13th 2013, 10:47

kya niu po b mg create ng prog ng BINGO ????
un nka random un players card tsaka un bola.......
tas mei condition un pattern pra malaman kung panalo un users
Back to top Go down
 
program in c to calculate age
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» program in c to calculate age
» Excellent Free Quilt Program
» Souvenir program tradings
» Least favorite History Channel program
» EXPOTV Tryology Program

Permissions in this forum:You cannot reply to topics in this forum
© PINOYGSM :: Programming-
Jump to: