//Find pitch diameter and pitch module clc //given T=48 m=6//mm ; module D=m*T p=%pi*m dia=D/10//cm P=p*0.0393700787//inches printf("\nPitch diameter = %.1f cm\nCircular pitch = %.4f in\n",dia,P)