PrivateSubCommand1_Click()a=Val(InputBox("ÇëÊäÈëÒ»¸öÕûÊý"))Fori=2ToSqr(a) IfaModi=0ThenExitForNextiIfi>Sqr(a)ThenMsgBoxa&"亩闷Ê衡知ÇËØÊý"ElseMsgBoxa&"²»ÊÇËØÊý"EndSub窗口上放一个按钮,点击按钮输迅拦弯入整数即可