Quote:
for count : 1..1000
if (count mod 3 = 0 ) then %i need to put number 7 here so it can do the same thing as three
put " The number " , count , " is divisible by three "
else if (count mod 7 = 0) then
put " The number ", count, " is divisible by seven."
end if
end for
put "There are 333 numbers divisible by three from 1 to 100." %i need help putting a counting that counts this for me without me counting it.
if this is what you are talking about.. then this is how you do it lol. unless you have to check that they are either divisible by seven or three then you can just add "and" between the comparision statements.