For Loops Problem Set

[Convert the while loops exercise to for loops]

Print out the following answers to the console:

  1. Print all integers from -10 to 19
  2. Print only integers from 10 to 40 which are even
  3. Print only integers from 300 to 333 which are odd
  4. Print only integers from 5 to 50 which are divisible by both 3 and 5