Dyskusje Q&A
What is the output and why?
public static int[] make (int n){
int[]a=new int [n];
a [i]=i+1;
}
return a;
}
public static void dub (int []jub){
for (intent i=0;i <jub.length;i++){
jub*=2;
}
}
public static int mus (int []zoo){
int jus=0;
for (int i=0;i <zoo.length;i++){
jus+=zoo [i];
}
return jus;
}
public static void main (String [] args){
int [] bob =make(5);
dub (bob);
System.out.println (mus (bob));
}
0 głosów
2 odpowiedziPopularne dzisiaj
CODE FOR MY TUITION CENTRE
0 Votes
Can somebody make me a website for my college project as I am hospitalized and paralyzed from chest
0 Votes
I need help
0 Votes
Servo motor ! HELP !!!
0 Votes
Career guidance
2 Votes
Generative AI
0 Votes