Hi all

First post here

so i just written a code for GCD
What I did is enclosed the whole code in a do-while loop in order to ask the user to repeat the procedure.

Code:
 assume all variables were declared alerady 
......
do
{
..... code.....
.................

printf("Get GDC again (Y/N)? ");
               scanf(" %c", &again);

}while ((again== 'y') || (again== 'Y'));
any other combination will just exit the program.
can I add a combination that the program will terminate on pressing 'n' or 'N', and that on any other output it will ask the user if they want to try again?

thank you all