Aktualizovat „du3/program.c“
This commit is contained in:
parent
cae7603318
commit
f7854aa287
@ -16,7 +16,12 @@ int main()
|
|||||||
|
|
||||||
t.tm_mday += 7;
|
t.tm_mday += 7;
|
||||||
|
|
||||||
printf(" %d.%d.%d", t.tm_mday, t.tm_mon + 1, t.tm_year + 1900);
|
if(t.tm_mon + 1 < 10){
|
||||||
|
printf(" %d.%d.%d", t.tm_mday, t.tm_mon + 1, t.tm_year + 1900);
|
||||||
|
} else{
|
||||||
|
printf(" %d.0%d.%d", t.tm_mday, t.tm_mon + 1, t.tm_year + 1900);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user