Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c8e192e

Browse files
committed
Added the comment in the code: Have implemented the program to add the digits to the one digit.
1 parent f9efb72 commit c8e192e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/com/raj/AddDigits.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static void main(String[] args) {
3535
System.out.println("The sum of the provided digit to the one digit is: " + num);
3636
}
3737

38+
// Recursive function to call itself until it gets the answer in one digit.
3839
private static int provideTotalToOneDigit(int num) {
3940
int ans = 0;
4041
if (num < 10) {

0 commit comments

Comments
 (0)