[Delphi (Object Pascal)] Delphi 整数翻转 →→→→→进入此内容的聊天室

来自 , 2020-09-26, 写在 Delphi (Object Pascal), 查看 170 次.
URL http://www.code666.cn/view/ac64504c
  1. function ReverseNumber(AValue: Int64): Int64;
  2. begin
  3.   Result := 0;
  4.   while AValue > 0 do
  5.   begin
  6.     Result := (Result * 10) + (AValue mod 10);
  7.     AValue := AValue div 10;
  8.   end;
  9. end;

回复 "Delphi 整数翻转"

这儿你可以回复上面这条便签

captcha