I have created a program where by a user inputs a set of upper case characters and then the program carries out a set of tasks based on the input.
What I'd like to know is how do I implement a do while loop so if the user enters either a number or a lower case letter then the program should jump to the end and tell the user that they have entered an invalid input.
The name of the array that stores the char's is called string.
Code:do { //code here } while (string = "A", "B", "C", "D") //etc etc