# Problem: A multiple of 7 (Sample Programs)

What is the smallest number that divided by 2,3,4,5,6, gives a remainder of 1, and it is exactly divisible by 7.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

cls

for j = 1 to 1000

l = 0

for k = 2 to 6

if j % k = 1 then l = l + 1

if l = 5 and j % 7 = 0 then

print "Number = "+j

goto zzz

end if

next k

next j

zzz:

end

:::::::::::::::::::::::::::::::::::::::::::

Number = 301