Program to Convert Km / hr to miles / hr and vice versa | Function to convert kmph to mph ; Function to convert mph to kmph ; Driver Code
function kmphTOmph ( kmph ) { return ( 0.6214 * kmph ) ; } function mphTOkmph ( mph ) { return ( 1.60934 * mph ) ; } var kmph = 150 var mph = 100 document . write ( " " + kmphTOmph ( kmph ) + " " ) ; document . write ( " " + mphTOkmph ( mph ) ) ;