Answers for "largest number in between a b c javascript"

0

largest number in between a b c javascript

// program to find the largest among three numbers

// take input from the user
const num1 = parseFloat(prompt("Enter first number: "));
const num2 = parseFloat(prompt("Enter second number: "));
const num3 = parseFloat(prompt("Enter third number: "));

const largest = Math.max(num1, num2, num3);

// display the result
console.log("The largest number is " + largest);
Posted by: Guest on August-25-2021

Code answers related to "largest number in between a b c javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language