function for circumference

wrote function for circumference