text: Program to find the number of men initially | Function to return the number of men initially ; Driver code
code: function numberOfMen ( D , m , d ) { var Men = ( m * ( D - d ) ) / d ; return Men ; } var D = 5 , m = 4 , d = 4 ; document . write ( numberOfMen ( D , m , d ) ) ;