Computer Science, asked by yashandvarun, 11 months ago

14. Give the output of the following function :
void show()
int y[ ] = {2, 4, 5, 8};
for(int j = 0; j <q; j++)
int q = y.length; int p=0;
p=y[ j ] + y[ 3-j];
System.out.println (p);​

Answers

Answered by ahmedfahi97
2

Answer:

()

int y[ ] = {2, 4, 5, 8};

for(int j = 0; j <q; j++)

int q = y.length; int p=0;

p=y[ j ] + y[ 3-j];

System.out.println (p);​

There u go. I showed it to you.

Similar questions