jeudi 21 juillet 2022

Break a number into 10 different numbers in a given range, after summing up should be the same as original number [closed]

As title

How to break a specific number into x different number, and each x should be in a range. Sum all them up should as the original number.

For example: original number is: 12000 range is: 1000 ~ 3000

how to find 10(x) number in 1000~3000 range and, and should be the same as 12000 after sum up.

Any coding language is okay, but prefer python :)




Aucun commentaire:

Enregistrer un commentaire