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
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