calculate area circle using diameter code example Example: area of circle Area of circle = Pi * r^2 (r stands for radius and ^2 means squared)