/*It is complied on Turbo C++ 3.0*/
#include <stdio.h>#include <dos.h>
#include<conio.h>
void main()
{
struct date d;
getdate(&d);
clrscr();
textcolor(2);
cprintf("Date in DD-MM-YEAR");
textcolor(6);
cprintf("\n\rThe current Date is: %d-%d-%d", d.da_day,d.da_mon,d.da_year);
getch();
}
0 comments:
Post a Comment