Generate a Python program to print all odd numbers from an array of integers.
[3, 5, 7, 10, 15]
def printOddNumbers(array):
  for number in array:
    if number % 2 != 0:
      print(number)

array = [3, 5, 7, 10, 15]
printOddNumbers(array)