From b65645ed8a055b8b5133cb0f5ca20768286f2ec4 Mon Sep 17 00:00:00 2001 From: kk134cv Date: Wed, 6 Mar 2019 08:22:47 +0100 Subject: [PATCH] added time library --- program.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/program.c b/program.c index 169c45f..10b654f 100644 --- a/program.c +++ b/program.c @@ -1,10 +1,13 @@ #include +#include int main(){ - int day = 0; - int mounth = 0; - int year = 0; - scanf("%d.%d.%d", &day, &mounth, &year); - printf("%d/%d/%d/", day, mounth, year); + //int day = 0; + //int mounth = 0; + //int year = 0; + //scanf("%d.%d.%d", &day, &mounth, &year); + time_t time; + scanf("%e.%m.%Y", &time); + printf("%e.%m.%Y", time); return 0; }