Program to Display todays date in c



Program to Display todays date in c




#include
#include
#include
#include
int main(void)
{
struct date DATE;

clrscr();
getdate(&DATE);
printf("The year is : %d\n",DATE.da_year);
printf("The month is : %d\n",DATE.da_month);
printf("The day is : %d\n",DATE.da_day);

return 0;

}

No comments:

Post a Comment