function DigitCountR(AValue: Int64): Integer;
begin
if AValue mod 10 = AValue then
Result := 1
else
Result := 1 + DigitCountR(AValue div 10)
end;

| عنوان | پاسخ | بازدید | توسط |
| |
0 | 3001 | admin |
| |
0 | 1856 | admin |
| |
0 | 3907 | admin |
| |
0 | 2224 | admin |
| |
0 | 1999 | admin |
function DigitCountR(AValue: Int64): Integer;
begin
if AValue mod 10 = AValue then
Result := 1
else
Result := 1 + DigitCountR(AValue div 10)
end;