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

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