largest number in between a b c javascript

Solutions on MaxInterview for largest number in between a b c javascript by the best coders in the world

showing results for - "largest number in between a b c javascript"
Emely
17 Aug 2017
1// program to find the largest among three numbers
2
3// take input from the user
4const num1 = parseFloat(prompt("Enter first number: "));
5const num2 = parseFloat(prompt("Enter second number: "));
6const num3 = parseFloat(prompt("Enter third number: "));
7
8const largest = Math.max(num1, num2, num3);
9
10// display the result
11console.log("The largest number is " + largest);
similar questions
queries leading to this page
largest number in between a b c javascript