vb改错 求镜反平方数 在线等

[复制链接]
查看11 | 回复1 | 2010-6-13 10:17:53 | 显示全部楼层 |阅读模式
n与m 都不含0 不相等 n的反序数m 例如12和21 他们平方 144 和411 正好相反 改错下面代码 private sub command1click
dim n as integer fn as integer st as string
for n=11 to 99
ifinstr(cstr(n)),
"0")0 then
fn=fx(n)
if validate(n,fn)and n0)fx=fx*10+(n mod 10)n=n/10loopend function
回复

使用道具 举报

千问 | 2010-6-13 10:17:53 | 显示全部楼层
改成fx=cint(s)试试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行