text: Program to find the head start in a race | Function to find the B start to C ; When B completed it 's 100 meter  then Completed meters by C is ; Driver Code ; When A completed it 's 100 meter Then completed meters of B and C is
code: function Race ( B , C ) { var result = 0 ; result = ( ( C * 100 ) / B ) ; return 100 - result ; } var B = 10 , C = 28 ; B = 100 - B ; C = 100 - C ; document . write ( Race ( B , C ) + " " ) ;