input: Write a python function to count up to a specified number, printing each number and stopping if it reaches a specified break number.
  assert count_up_to(10, 5) == [0, 1, 2, 3, 4, 5]
  assert count_up_to(10, 8) == [0, 1, 2, 3, 4, 5, 6, 7, 8]
  assert count_up_to(5, 2) == [0, 1, 2]
output: def count_up_to(max_num, break_num):
      result = []
      for i in range(max_num + 1):
          result.append(i)
          if i == break_num:
              break
      return result