Skip to content

Commit 1f9fc65

Browse files
committed
changes done
1 parent 1bda1d3 commit 1f9fc65

File tree

1 file changed

+2
-1
lines changed
  • LCM-HCF-CALCULATOR/public/js

1 file changed

+2
-1
lines changed

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

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

4343
let min = (num1 < num2) ? num1 : num2;
44-
while(!false){
44+
let flag= true;
45+
while(flag){
4546
if(min % num1 == 0 && min % num2 == 0){
4647
resultLcm.innerHTML = `LCM of ${num1} and ${num2} is ${min}`;
4748
if(min % 2 == 0){

0 commit comments

Comments
 (0)