For loop vb.net increase -


i have got small question.if made loop increase myvar value 30 if remainder of division 0.

  dim myvar integer = 49         integer = 0 myvar             console.writeline("pasada " & i)             if math.ieeeremainder(i, 3) = 0                 myvar += 30             end if         next 

how can make change repetitions new value of myvar??

why don't use loop

dim myvar integer = 49 dim integer     while <= myvar         console.writeline("pasada " & i)         if math.ieeeremainder(i, 3) = 0             myvar += 30         end if         +=1     loop   

Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -