Computer Science, asked by sharon9876, 10 months ago

Guys pls write the program in javascript ​

Attachments:

Answers

Answered by Anonymous
2

Answer:

i)

public class Largest {

public static void main(String[] args) {

double n1 = X, n2 = Y, n3 = Z;

if( n1 >= n2 && n1 >= n3)

System.out.println(n1 + " is the largest number.");

else if (n2 >= n1 && n2 >= n3)

System.out.println(n2 + " is the largest number.");

else

System.out.println(n3 + " is the largest number.");

}

}

Note that X,Y And Z are variables

Answered by vanshg28
4

Answer:

Sharon pls come back.......

Similar questions