in this line:
the input is only 6 characters and the program only takes in the first 6 characters.
however when i go to compile and run the program, i can type as many characters i want. in the program, as i type the input, i don't want to be able to type more than 6 characters.
can someone give me the code or lead me in that direction?
i know its possible because in the past i created a program that asks for a username (5 chars) and you can't type more than 5 chars in the line.