-2
#include <stdio.h>
int main(){
int hora,minuto,dia,mes,ano;
scanf("%d",&hora);
scanf("%d",&minuto);
scanf("%d",&dia);
scanf("%d",&mes);
scanf("%d",&ano);
printf("%02d:%02d %02d/%02d/%02d",hora,minuto,dia,mes,ano);
}
I want the year to be just the last two units, as I do?
Look already thought of receiving the year in a char vector, put in the format you want and then convert to int? if you find interesting show how. There may be another way, but I don’t know.
– Fernando