0
In this code , I want input style in 10 + 20 format. Present is vertical :- 10 (enter) + (enter) 20.
3 Réponses
+ 15
If you enter in this format, it'll work. Just separate the inputs using spaces:
10(space)+(space)20
+ 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.
0
@shamima I want to use as 10+20 ,
10 + 20 is not proper way