Computer Science, asked by hemashreekhati, 4 months ago

int all=new int[3]; a[0]=5; a[1]=10; a[2]=20;
System.out.println(a[O] + a[2]); What will
be printed?
2
30
25
5​

Answers

Answered by Oreki
0

Output:

25

Explanation:

As, a[0] = 5 and a[2] = 20,

So, 5 + 20 = 25.

Answered by anindyaadhikari13
1

Answer:-

a[0]+a[2]=5+20=25

So,

output is

25

Similar questions