3 answers
mathias’s Answer
Matematics and logics are directly of help.
All kinds of logical games as well as complex board games such as chess and go/baduk are also indirectly of help.
Also, programming is creative work so anything that trains your ability to create stuff is also good.
Stay curious and be open to learning anything new, that also helps! As a programmer you must be able to learn new languages and tools quickly every now and then. Good luck!
Fred’s Answer
A strong math background is important, you should also look at taking some intro level programming classes. This will help you better understand this field.
You should also look at the prerequisites for the college that you want to attend.