Following program shows you how to calculate circle area.
In this tutorial will get circle radius from user and calculate area and prints it using following formula
Area = PI X r X r
circleRadius = float(input("Please enter the radius of circle:")) areaOfCircle = 22/7 * (circleRadius * circleRadius) print("Area of circle is: " , areaOfCircle)
Please enter the radius of circle: 5 Area of circle is: 78.57142857142857
On By Navya
Getting 'No EntityManager with actual transaction available for current thread' exception while removing some data
How to fix Found use of deprecated [org.hibernate.id.SequenceGenerator] sequence-based id generator; use org.hibernate.id.enhanced.SequenceStyleGenerator instead