Skip to content

Commit 1bda1d3

Browse files
committed
error resolved.
1 parent 945142e commit 1bda1d3

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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(true){
44+
while(!false){
4545
if(min % num1 == 0 && min % num2 == 0){
4646
resultLcm.innerHTML = `LCM of ${num1} and ${num2} is ${min}`;
4747
if(min % 2 == 0){

0 commit comments

Comments
 (0)