I'm writing a date conversion program and I've put the input as a constant(I'm not sure if I can do it, as It might need to be a construct or method).
When I check the initial input, if its the wrong data the I want to call up the original input message without using a goto etc.
static const userInput =
printf("Please enter a date using the format of dd/mm/yy, "),
printf("and press enter. A year after 2000 is accepted only. "),
scanf("%d/%d/%d", iday, imonth, iyear)
I call the userInput up at the end of the error message
printf("\nInvalid entry, Please re-enter the whole date: ", userInput);
Any help would be appreciated.