Home > Software engineering >  VB program design
VB program design

Time:11-09

What a great god can save the children? Please, please, use a for loop statement to solution,

CodePudding user response:

Which book on homework, learn to independent thinking!

CodePudding user response:

Dim x as integer
Dim as integer I
Dim s as string
S=""
X=val (inputbox (" both please enter a number: "))
While x & gt; 1
For I=2 to x
If x mod I=0 then s=s & amp; "" & amp; I: x=x \ I: exit for
Next I
Wend
Msgbox s

CodePudding user response:

The baidu search on your topic, affirmation is the answer!

CodePudding user response:

reference version of reply: 3/f
your topic on baidu search, affirmation is the answer!

Baidu search, there is no example of a for loop

CodePudding user response:

reference 1/f, pearl response:
which book on homework and learn to think independently.

The brain not enough use

CodePudding user response:

This thing, copy, or let people do,

CodePudding user response:

reference 4 floor weixin_46658628 response:
Quote: reference version of reply: 3/f
your topic on baidu search, affirmation is the answer!

Baidu search, not for loop example

I searched see baidu is while wend cycle, just you into a for loop, in addition the somebody else give you write the code on the second floor, under the respect the somebody else's work achievement, don't ignore,

CodePudding user response:

refer to the second floor of guiyang horse Ma Shanfu plugging waterproof engineering professional maintenance of swimming pool response:
dim x as integer
Dim as integer I
Dim s as string
S=""
X=val (inputbox (" both please enter a number: "))
While x & gt; 1
For I=2 to x
If x mod I=0 then s=s & amp; "" & amp; I: x=x \ I: exit for
Next I
Wend
Msgbox s

Thank you?? I do a success
  • Related