New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
C# method confusion...
4 Votes
20 AnswersWhat 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 Votes
2 AnswersHot today
What's the error in this code?
0 Votes
How to find image links
0 Votes
Py to Exe
0 Votes
I don’t know why but python seems to be harder than java to me does any body else fell like this?
0 Votes
TIMER
0 Votes
What's wrong with my code?
0 Votes
Help Me!!!
1 Votes