Computer Science, asked by ramandeepkaur4551, 1 month ago

Wap in JavaScript to convert Hours to minutes using function.

Answers

Answered by mk9911594713
0

Answer:

function timeConvert(n) { var num = n; var hours = (num / 60); var rhours = Math. floor(hours); var minutes = (hours - rhours) * 60; var rminutes = Math. round(minutes); return num + " minutes = " + rhours + " hour(s) and " + rminutes + " minute(s)."; } console. log(timeConvert(200));

Similar questions