0

How do we break an integer in kotlin?

Hi, i want to know is there possible way to break an integer? Like if user enters 255 l, then can we break it into 200 and 55?? I mean can i operate on 200 differently and on 55 differently?

7th Jul 2019, 5:35 PM
mirza
mirza - avatar
3 Réponses
+ 1
255/100*100 = 200 255%100 = 55
8th Jul 2019, 2:23 AM
John Wells
John Wells - avatar
+ 1
Thanks a lot may be i'm a beginner that's why i didn't get it completely but i appreciate your response and i'll keep going on it.
8th Jul 2019, 12:07 AM
mirza
mirza - avatar