Skip to content
Advertisement

How to take in both input split by space(s) and by line(s)

for example I have this 2 inputs:

JavaScript

and:

JavaScript

How do I take all of them using the same code?

Advertisement

Answer

Read lines of input and split them until you get 3 total values.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement