帮我计算下VB程序,谢谢!!!
发布网友
发布时间:2024-10-06 04:50
我来回答
共1个回答
热心网友
时间:2024-10-16 13:25
Do While x <> 0
y = y & x Mod 10
=> x mod 10 = 9 ( mod 求余数的)
=> y = y & 9 , 因 y ="" => y = "9"
y = x \ 10 Mod 10 & y
=> x \ 10 = 12345678 ( \ 求整除商)
=> 12345678 mod 10 = 8
=> y = "8" & "9" = "89" <---------要求的值
x = x \ 100
=> x = 123456789 \ 100 = 1234567
loop
=> 再做一次,一直到 x=0 为止
y 的变化过程
=> 89 => 6897 => 468975 => 24689753 => 0246897531
答案为 y 最后会等於 "0246897531"