Focus on the math not the grades. Homework isn't a grade generating machine or a torture device. It is an evaluation tool for both you and your professor. If you are confused ask your professor. This will help him/her understand where he/she is losing the class and help you understand the material. Opening a dialog with your professors is incredibly important. It will help your grades and give you valuable life skills.
When you receive grades back review what you did right and wrong. This is where students I tutor fall behind. It doesn't seem productive to review something you've already been graded on, but math builds on previous knowledge more than almost any other subject. If you don't understand previous material you won't understand future material. Ask your professor questions if you are confused or curious.
If you struggle with math consider finding a tutor, but always go to your professor first with questions. If you are talented with math consider becoming a peer tutor. Teaching solidifies understanding and helps keep knowledge of previous material fresh. If your school has a peer tutoring program consider taking on a few 9th grade math students.
Most importantly, have fun!