i', develop a math program now , how can i allow my user to have second chance when they enter wrongly?
Code:void additionmenu() { char choice; printf("Please select the level\n"); printf("A level 1\n"); printf("B level 2\n"); printf("C level 3\n"); scanf("%c", &choice); if (choice == 'A' || choice == 'a') { printf("You have selected level 1\n"); addEasy(); } else if (choice == 'B' || choice == 'b') { printf("You have selected level 2\n"); addMedium(); } else if (choice == 'C' || choice == 'c') { printf("You have selected level 3\n"); addDifficult(); } else { printf("Invalid choice\n"); menu(); } rewind(stdin); return choice; }