i need to write a program to calculate the arctan of 35 degrees with the following sequence

arctan(t) = t - t^3/3 + t^5/5 - t^7/7 + t^9/9

im bad with math so any help would be appercaited