//program to find the age of given date of birth
#include <dos.h>
#include <stdio.h>
int main(void)
{
struct date d;
int bd,bm,by,day,m,y,cd,cm,cy;
clrscr();
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 : ");
scanf("d%d",&bd,&bm,&by);
{
if(cd<bd)
{
cm=cm-1;
cd=cd+30;
day=cd-bd;
}else
day=d.da_day-bd;
}
{
if(cm<bm)
{
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);
getch();
}
//by DILKASH
from MANUU
There is no need to write a C program for circuit analysis; there are lots of packages out there that already do that (for example, Spice).
To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.
Write and run a client and a server program in C-language using UDP
yes
c#
If you was born in 1977, then you are 35 or 36 years old in 2013 (depending on the current date and your birthday). No computer needed to tell that.
a c program for creat a virus
Into the source program.
Write a c program to compute the surface area and volume of a cube
There is no need to write a C program for circuit analysis; there are lots of packages out there that already do that (for example, Spice).
To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.
You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.
For first find an example program.
Use a text-editor program.
* * * * * * * * * * write the c++ program and show me brifily?
c#
yes