Math and CS similarity?

Both will require logical thinking, whether you are proving theorems or writing computer programs.

Some CS theory courses are very much like upper level math courses.