I want to take multiple integer inputs in same line
eg :- input
-1 -1
500 500
so that I can multiply them. I am taking the input in a string from keyboard – then what should I do?
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.
This prints [“5”, “66”, “7”, “8”] if you type a line containing
5 66 7 8(separated by any whitespace):To get them multiplied, do something like this: