SETVAR i=0 SETVAR sum=0 SETVAR max=100 LOOP COND %i% <= %max% ? REPEATS 1 SETVARO m1 = set /a %i% % 3| SETVARO m2 = set /a %i% % 5|^ COND %m1% == 0, %m2% == 0 ? SETVARO sum = set /a %sum% + %i% |^ COND %m1% != 0 + %m2% != 0 ? DISPMSG %i% not a multiple! %i% % 3 = %m1%, %i% % 5 = %m2% |^ COND %m1% == 0, %m2% == 0 ? DISPMSG %i% is multiple! %i% % 3 = %m1%, %i% % 5 = %m2% |^ SETVARO i = set /a %i% + 1 ^ && CONTINUE REM SHELL echo %DURATION_FROM_START% >> @@data\sum.txt DISPMSG Sum is %sum% DISPMSG %DURATION_FROM_START% WAITINPUT