+ 2

Write a single line of code in JAVA to print sum of digits in a number taken as input.

9th Oct 2017, 5:24 AM
Deepesh Pandey
Deepesh Pandey - avatar
5 Antworten
+ 12
// i like the code 😃☺ // will modify my method now
9th Oct 2017, 7:34 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 11
https://code.sololearn.com/cDMf4B3y6LPY/?ref=app //u can write whole code in 1 line ☺😂
9th Oct 2017, 7:07 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
9th Oct 2017, 9:44 AM
LukArToDo
LukArToDo - avatar
9th Oct 2017, 7:33 AM
Alice
Alice - avatar
+ 2
@LukArToDo Done.
9th Oct 2017, 11:39 AM
Deepesh Pandey
Deepesh Pandey - avatar