We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f873938 commit 735a4fdCopy full SHA for 735a4fd
1 file changed
javascript/3_math-programs/divide.js
@@ -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