如何用vb语言写各位数字反转的代码

2026年09月28日 17:40
有2个网友回答
网友(1):

x=cint(inputbox("x="))
y=0:x1=x
while x>0
y=y*10+x mod 10
x=x\10
wend
msgbox x1 & " ====> " & y

网友(2):

将整数 x 各位数字反转的代码
x xor -1