clc //given Teeth=48 pitch=.75 //in D=Teeth*pitch/%pi printf("The pitch diameter is %.3f in",D)