added time library

This commit is contained in:
Kyryl Kobzar 2019-03-06 08:22:47 +01:00
parent 588c33da66
commit b65645ed8a

View File

@ -1,10 +1,13 @@
#include <stdio.h>
#include <time.h>
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;
}