0

How to write a Java program to find sum of individual digits using if else loop in java

16th Aug 2021, 1:07 PM
Savan Ambate
Savan Ambate - avatar
3 ответов
+ 2
What is the condition required that conditional `if...else` block was even necessary? You don't need `if...else` block to sum the digits. If there is a condition specified then you need to describe it.
16th Aug 2021, 2:21 PM
Ipang
+ 1
Next time, try to search Code Playground first, for inspirations and/or examples. https://code.sololearn.com/chmzeYkv59L1/?ref=app
16th Aug 2021, 2:05 PM
Ipang
0
Using if else
16th Aug 2021, 2:17 PM
Savan Ambate
Savan Ambate - avatar