+ 6
Maximum Score of Arrays...do you like my Code?
public class Main { static int n=4; public static void main(String[] args) { int a[]={1,2,3,4,5}; int max=0; for(int i=0;i<a.length;i++){ if(a[i]>max){ max=a[i]; } } System.out.println(max); } }
1 Resposta
+ 2
gud