Hey, also ich möchte die Berechnungen gerne in einen Algotihmus formen. Wie gehe ich da am besten vor??
Java:
int first = zahl % 10;
int second = (zahl - first) % 100 / 10;
int third = (zahl - first - second) % 1000 / 100;
int fourth = (zahl - first - second - third) % 10000 / 1000;