Hello
I wrote this program:
Code:
int selection;
printf("1.) Integer to Binary converter\n");
printf("2.) Fibonacci generator\n");
printf("999.) Exit\n");
printf("Enter selection ---> ");
scanf("%d", &selection);
switch (selection){
case 1:
printf("You selected 1\n");
break;
case 2:
printf("You selected 2\n");
break;
case 999:
printf("Goodbye\n");
break;
default:
printf("Wronge selection\n");
break;
}
This program needs a lot more work to be finished, but how can I make it that when the default switch gets selected the top menu gets repeated until that the user selects 1,2, or 999?