Write a program to print the largest number of the two numbers given

Write a program to print the largest number of the two numbers given.

Input:-
a=3, b=4
Output:
4

2 Likes

function max(a, b){

if(a>b)
{
console.log(a);
}
else
{
console.log(b);
}

}
max(3,4)

3 Likes

Correct :100: keep it up