Hi,
I need to calculate cos by
cosx=1-x^2/2!+x^4/4!-x^6/6!+x^8/8!-x^10/10!+x^12/12!-x^14/14!+x^16/16!-x^18/18!+x^20/20!
I think I need while.
tanks.
check some of the other recent posts. I found your problem being discussed here: http://www.cplusplus.com/forum/beginner/26566/