Computer Science, asked by Sushamadeysil, 5 months ago

int h[ ] = {6, 12, 18, 24, 30, 42};

int sum = 0;

for (int k=0; k<6; k++)

sum + = h[k];

System.out.print(sum):​

Answers

Answered by tanvi3278
0

plz follow and mark as the brainliest

Explanation:

Int h[ ] = {6, 12, 18, 24, 30, 42}; int sum = 0;

for (int k=0; k<6; k++)

sum + = h[k];

System. out. print(sum):

Similar questions