how to input
1 2
4 5 4 2 3
1 2 1 1 1
to cmd?
I don’t want “1 2” to be read when I press “Enter” but to go to next line and write “4 5 4 2 3”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m just doing guesses here, since you really didn’t give me much to work with, but did you consider using the escape character () to escape newlines?
Alternatively, just create a loop that keeps reading until you enter an empty line: