i = zahl.länge; quer = 0; while (i >= 0) { temp = zahl div 10^i; quer += temp; zahl -= temp * 10^i; i--; }