Wednesday 15 January 2014

Batch Adding 1 to a number untill Modulo divide 4 -


I am trying to explain what is my case:

Say I have 30 numbers

set / a number = 30 %% 4

How can I know to add it to 2 to 30 to make it modern?

Thx in advance

What do you want this?

  @echo off set num = 30: loop set / a num = num + 1 set / a number = num %% 4 if% number% NEQ 0 goto: loop echo% Num% < / Code>   

No comments:

Post a Comment