Professional Documents
Culture Documents
Computer Project
Computer Project
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
Software Requirements
Python idle
Microsoft Word
Flowchart
Import import math
precision=int(input(“Enter
how many digits”))
Precision >
50: ?
No Yes
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