Skip to content

Commit 735a4fd

Browse files
committed
divide.js
1 parent f873938 commit 735a4fd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// 16. Find the Quotient and Remainder by Dividing an Integer
2+
3+
function divide(num, devisor) {
4+
return `Quotient = ${Math.floor(num / devisor)} and remainder is ${num % devisor}`;
5+
}
6+
7+
console.log(divide(111, 10))

0 commit comments

Comments
 (0)