Hello everyone how i can sum a number (n) from array with at leaset specfic number (k) in JAVA .
like e.x ) n= 18 , k= 2
18 = 7 + 11 . array[2, 3, 5, 7, 11, 13, 17, 19, 23] ............................................... e.x) n = 11 , k= 3 11= 5 + 4 + 2 .
array[2, 3, 5, 4, 11, 13, 6, 19, 23]