For loop not giving me the required answer.
Hi.There is this program i am writing to calculate e^x.If i use a for loop and initialize my Variable(t) to 1,after the For loop is executed in Instruction(t*=Fact(z)) it returns 1 at the end of the loop for t(Fact is my method for factorial).Why does this happen and how can i Change this .Thanks.
Re: For loop not giving me the required answer.
You might need to show your code.
And please wrap it in [code] tags [/code] otherwise it will lose all formatting and fewer people will bother trying to read it.
Re: For loop not giving me the required answer.
I feel another psychic mood coming up and I see through the mists of the cosmos integer divisions ...
kind regards,
Jos ;-)