Question d’entretien chez Virtusa

Write a Java Program to find the maximum element in an array of 10 elements.

Réponse à la question d'entretien

Utilisateur anonyme

24 août 2016

int max; int array[]=new int[10]; Scanner sc=new Scanner(System.in); for(int i=0;imax) { max=array[i]; } }

1