Find amount to be added to achieve target ratio in a given mixture | Javascript program to find amount of water to be added to achieve given target ratio . ; Driver code
function findAmount ( X , W , Y ) { return ( X * ( Y - W ) ) / ( 100 - Y ) ; } let X = 100 , W = 50 , Y = 60 ; document . write ( " " + findAmount ( X , W , Y ) . toFixed ( 2 ) ) ;