Integer concatenation | Sololearn: Learn to code for FREE!

Integer concatenation

Is it impossible to get an output?like: 21 26 27 Exactly in a straight row. strings work but integer blocks me with err.

22nd Aug 2020, 10:12 AM
Light Yagami
Light Yagami - avatar
2 Antworten
+ 5
22nd Aug 2020, 10:30 AM
Namit Jain
Namit Jain - avatar
+ 4
Convert both numbers to string Concatenate both strings into one, as this is comparatively easy Convert this concatenated string back to integer
22nd Aug 2020, 10:18 AM
A S Raghuvanshi
A S Raghuvanshi - avatar