tags:

views:

71

answers:

1

Write a program that outputs the numbers that are divisible by 8 and are between 200 and 600 (inclusive), separated by commas (without spaces or line breaks).

A: 

hey

to find out if a number is divisable by another you can use the modulo operation

something like that:

for($i=200; $i<=600; $i++)
   if($i%8==0)
      print_f("divisiable by 8");
Oliver