Hi sorry if this has already been asked but I've looked and couldn't find it. I've been working on a program for my university work I want the program to repeat if the user answers yes to a question but the code I have written does not work and I can't see why.
Code:char answer = '\0'; printf("Would you like to calculate another price? Y/N: "); scanf("%c", &answer); if ( answer == 'Y' || answer == 'y' ) { mn(); } else { return 0; }