Skip to content

Commit 3aad6fa

Browse files
committed
project added in index.md
1 parent 35e3fc7 commit 3aad6fa

File tree

1 file changed

+3
-3
lines changed
  • LCM-HCF-CALCULATOR/public/js

1 file changed

+3
-3
lines changed

LCM-HCF-CALCULATOR/public/js/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const findLcm = () => {
4141
const num2 = numLcm2.value;
4242

4343
let min = (num1 < num2) ? num1 : num2;
44-
while(1){
44+
while(true){
4545
if(min % num1 == 0 && min % num2 == 0){
4646
resultLcm.innerHTML = `LCM of ${num1} and ${num2} is ${min}`;
4747
if(min % 2 == 0){
@@ -55,8 +55,8 @@ const findLcm = () => {
5555
}
5656
min++;
5757
}
58-
});
59-
};
58+
})
59+
}
6060

6161
const findHcf = () => {
6262
$(".resultboxHcf").slideToggle("slow");

0 commit comments

Comments
 (0)