Programming isn't about line lengths though. It is easy for me to accept that simple things might stretch 50 or more lines, if I have enough reasons. Either because it looks cleaner or because I have many use cases to consider. Take a moment to appreciate how complex you've made the task already -- passcode handles not just password input, but it plays a role in controlling the loop. If you start worrying about line numbers you'll just make things impossible for yourself.
I'm just bumfuzzled as to how to initialize all these new char values without making my code 20 lines longer