Home  • Programming • JavaScript

Find the largest number between two numbers

Code Solutions [4384]
 let a=parseFloat(prompt("Enter first value"));
 let b=parseFloat(prompt("Enter second value"));

   if(a>b){
     document.write(a);
  }else{
     document.write(b);
  }
  

Comments 0


Copyright © 2024. Powered by Intellect Software Ltd