Hi does anyone have an idea how should i apply using loops to compute the following formular in my program? Thanks in advance

x-x^2/2+x^4/4 -x^6/6 + .......... -x^20/20

^ refers to Power of
eg: x^2 is x²