I get compilation but 0 as my answer [closed]

If you’re calculating an infinite series, you want to add the terms, not multiply them… i.e. answer=answer+next_term;

Leave a Comment