0

In this code , I want input style in 10 + 20 format. Present is vertical :- 10 (enter) + (enter) 20.

https://code.sololearn.com/cavD092FBu8g/?ref=app

18th Dec 2017, 12:33 PM
Prashant Kumar
Prashant Kumar - avatar
3 Answers
+ 15
If you enter in this format, it'll work. Just separate the inputs using spaces: 10(space)+(space)20
18th Dec 2017, 1:04 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 10
In that case, you can consider the input as a String. Then extract the numeric parts using split() method and convert them to integers.
18th Dec 2017, 5:08 PM
Shamima Yasmin
Shamima Yasmin - avatar
0
@shamima I want to use as 10+20 , 10 + 20 is not proper way
18th Dec 2017, 3:22 PM
Prashant Kumar
Prashant Kumar - avatar