Курсы
ВойтиНачать изучение ИИ
Курсы
ВойтиНачать изучение ИИ

Обсуждения

Why is the output 17 ? (this is the array modul quiz(SoloLearn)) int result = 0; for (int i = 0; i < 5; i++){ if (i == 3) { result += 10; }else{ result += i; } } System.out.println (result);
java
0 голосов
5 ответов
22nd Jul 2016, 9:41 AM
Peter Müller
Peter Müller - avatar
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)); }
java
0 голосов
2 ответов
9th Jul 2016, 12:20 PM
milada
milada - avatar
< Предыдущий12Следующий >
Актуальное сегодня
I'm about to make a complex calculator in python
1 Votes
why is python community is too small in sololearn?
0 Votes
C#
0 Votes
Audio adding
1 Votes
Blockchain Development
0 Votes
The best python learning app ????
0 Votes
%
0 Votes
Stuck in Quize
1 Votes
C Program
0 Votes
What is problem in this code
0 Votes