[ ASSIGNMENT: ] Balanced Number
Balanced NumberĀ is the number thatĀ : The sum ofĀ all digits to theĀ left of the middleĀ digit(s) and the sum of all digits to theĀ right of the middleĀ digit(s) areĀ equal. TASK : GivenĀ a number, find if it is Balanced or Not ? NOTE! - IfĀ theĀ number has an odd number of digits thenĀ there is only one middle digit, e.g. 92645Ā has middle digitĀ 6;Ā otherwise, there areĀ two middle digits, e.g.Ā 1301 has middle digitsĀ 3Ā andĀ 0. - The middle digit(s)Ā shouldĀ notĀ be considered whenĀ determining whether a number is balanced or not,Ā e.g.Ā 413023Ā is aĀ balanced number because the left sum and right sum are bothĀ 5. - NumberĀ passed is alwaysĀ Positive! - ReturnĀ the result asĀ String! HappyCodings!:) https://code.sololearn.com/WxJ60m8Bxjta/?ref=app