how to get circumference from diameter code example Example: how to find circumference of a circle curcomfrance = pi * radius * 2