Aktualizovat „du3/program.c“
This commit is contained in:
parent
300898b676
commit
01e0feb0a0
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
printf("Enter date: ");
|
|
||||||
|
|
||||||
char dateStr[11];
|
char dateStr[11];
|
||||||
struct tm t;
|
struct tm t;
|
||||||
@ -19,7 +18,7 @@ int main()
|
|||||||
|
|
||||||
strftime(dateStr, sizeof(dateStr), "%d.%m.%Y", &t);
|
strftime(dateStr, sizeof(dateStr), "%d.%m.%Y", &t);
|
||||||
|
|
||||||
printf("The day of the week is %s", dateStr);
|
printf("\n%s", dateStr);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user