Skip to content

Commit

Permalink
changes done
Browse files Browse the repository at this point in the history
  • Loading branch information
jugeshraghav committed Aug 10, 2021
1 parent 1bda1d3 commit 1f9fc65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LCM-HCF-CALCULATOR/public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const findLcm = () => {
const num2 = numLcm2.value;

let min = (num1 < num2) ? num1 : num2;
while(!false){
let flag= true;
while(flag){
if(min % num1 == 0 && min % num2 == 0){
resultLcm.innerHTML = `LCM of ${num1} and ${num2} is ${min}`;
if(min % 2 == 0){
Expand Down

0 comments on commit 1f9fc65

Please sign in to comment.