Kotlinlearncs.online LogoJava
Return to List

Homework: Sum Limit

Imported By: Geoffrey Challen
/ Version: 2021.6.0
/ Adapted from CodingBat

Given 2 non-negative ints, return their sum, so long as the sum has the same number of digits as the first int. If the sum has more digits, just return the value of first int. You may want to convert the int values to Strings to determine their length.