added time library
This commit is contained in:
parent
588c33da66
commit
b65645ed8a
13
program.c
13
program.c
@ -1,10 +1,13 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
int day = 0;
|
//int day = 0;
|
||||||
int mounth = 0;
|
//int mounth = 0;
|
||||||
int year = 0;
|
//int year = 0;
|
||||||
scanf("%d.%d.%d", &day, &mounth, &year);
|
//scanf("%d.%d.%d", &day, &mounth, &year);
|
||||||
printf("%d/%d/%d/", day, mounth, year);
|
time_t time;
|
||||||
|
scanf("%e.%m.%Y", &time);
|
||||||
|
printf("%e.%m.%Y", time);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user