Saturday, March 10, 2012

Wap to print Current date in C

No comments

/*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

Entries RSS Comments RSS

Sample Text

Pages


Copyright © Lovely Codes
Powered by Blogger
Distributed By Free Blogger Templates | Design by N.Design Studio
Blogger Theme by Lasantha - PremiumBloggerTemplates.com