My undergrad was B.Sc. Math, and my program required four courses when I entered: two intro courses using Java, a programming lab which just was practise in a particular language (either C++, Prolog, or something else I can't remember), and a data structures course.
The latter two were dropped from the requirements since the entire system was redesigned, but I took two extra courses anyway: advanced C++ and formal languages.
I can't comment on any struggles, because I was bunched up with engineers and CS majors. Great courses though, and if anything they helped because experimental mathematics is just really fun.

