+ 4

How to get multiple variabels on one line?

So I was wondering to do this in different languages Say I have an input 1 2 3 4 5 6 7 In python you could easily have all the variables by using the split() method, but it's difficult to do on other languages I wander how to do this on: • C++ • Java • Pascal how do you do this? I've searched on google, but kinda hard to find the answers thanks!

13th Jul 2018, 9:12 AM
Muhammad Hasan
Muhammad Hasan - avatar
5 Respostas
13th Jul 2018, 10:50 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 11
https://code.sololearn.com/c2PYIvz3UW3Z/?ref=app
13th Jul 2018, 9:56 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
13th Jul 2018, 9:47 AM
Mert Yazıcı
Mert Yazıcı - avatar
0
https://code.sololearn.com/c2PYIvz3UW3Z/?ref=app
13th Jul 2018, 11:07 AM
Honia Dana
Honia Dana - avatar
13th Jul 2018, 1:52 PM
Stephane Lenglet
Stephane Lenglet - avatar