+ 1
Limit number of characters is string
How can I allow the user to enter a string with specific length? Ex Input 3 The user can write only ... three characters
3 Antworten
+ 11
U can display error message "read the instructions carefully"
+ 5
You can either reject input longer or shorter than 3 characters, or automatically cut/fill it to 3.
+ 1
I don’t want to reject the input I want to store the strings in array but all the strings must have length that already defined by the user