I like math...
I used to hate it when I was at school because most of my math teachers were bad ones. I think your teacher is right, when it comes to programming you should at least be OK with math. If you want to get a university degree in computer science you must be OK with math. I had 6 math courses at the university, and most other courses are somehow related to math.
[edit]
Sometimes the problem isn't in the math itself, it's just that you've never been tought math right