Quote:
Write a program that Calculate the value of π from the infinite series
As programmer, your job is to create solutions to given problems, as student, this homework is training/practicing and all homework makes early experience.
First of all you need to get informations about known methods to calculate pi with infinite decimals:
Infinite Expressions for Pi[
^]
If you take the pain to search internet, you will find pieces of code that do the job.