You are on page 1of 1

#include<stdio.

h>

int main()
{
int mm,dd,yy;
printf("Enter date (MM/DD/YYYY format): ");
scanf("%d/%d/%d",&mm,&dd,&yy);

char *months[] = {
"January", "February", "March", "April",
"May", "June", "July", "August",
"September", "October", "November", "December",
};

printf("\nDate in Formal format: %s %d ,%d", months[mm - 1],dd,yy);

return 0;
}

You might also like