(Can't use space and can't use: if,switch,.....case) I have my code:
#include <stdio.h>
int main()
{
int dd, mm, yyyy;
printf("Podaj date (w formacie dd-mm-yyyy):");
scanf("%d-%d-%d", &dd, &mm, &yyyy);
printf("Day:%02d\nMonth:%02d\nYear:%04d\n",dd,mm,yyyy);
return 0;
}
And output looks like this:
Podaj date:06-08-0009
Day:06
Month:08
Year:0009
And how do it like this
Podaj date: 06-08-0009
Day: 06
Month: 08
Year: 0009