Couple of comments and solution:
1. If your intention is to continue the loop when the user enters "y" or "Y" for C, then you can replace the while loop as }while(c == 'y' || c == 'Y');

2....