You are on page 1of 8

JYOTIRMOY PUBLIC SCHOOL

Project Report on
How to compute the value of Pi upto n
terms

Submitted By
Rajib Molla
Class- XI Sec-B
Roll-23
Subject-Computer Science
Session -2022-23
Acknowledgement

I would like to expresss my special thanks of gratitude


to my teacher Arunava Sengupta as well as
our principal Sushant Das, who gave me the golden
opportunity to do this wonderful project
on the topic Compute the value of Pi upto n digits,
which also helped me in doing a lot of Research and I
came to know
about so many new things and I am really thankful to
them
I would also like to thank my parents and my friends
who helped me a lot in finalizing this project
within the limited time frame.
Hardware Requirements

Processor- Intel(R) Core(TM) i5-7500 CPU @


3.40 Ghz
Installed ram- 8.00 GB(3.22 usable)
System type- 64-bit operating system, x64-
based processor

Software Requirements
Python idle
Microsoft Word
Flowchart
Import import math
precision=int(input(“Enter
how many digits”))

Precision >

50: ?

No Yes

Print(“Number too large”)


else:
Precision=int(raw_input(“How many
print('%.*f'%(Precision,math.pi))
digits?”))

End
Code
import math
Precision = int(input(“How many digits?”))
While precision >50:
Print(“Number too large”)
Precision = int(raw_input(“How many digits?”))
else:
print('%*f'%(Precision,math.pi))

Output
Conclusion

Importance of python:
 Open Source Software
 Community Support
 Modularity
 Extensibility
 Object Orientation
Thank You

You might also like