How would I convert a 2 digit year formatted like this into four year:
02 -> 2002
87 -> 1987
etc...
What I have so far:
char shortYr[3];
char longYr[5];
scanf("%2s", shortYr);
int shortYrAsInt = atoi(shortYr);
if (shortYrAsInt < 99)
;
How do I convert it? On the Internet, I read about converting 4 digit to 2 digit, which is easy, but what about the other way?