Computer Science, asked by abinayachandrasekera, 4 months ago

Choose the code snippets that would find the mean of first 10 natural numbers
(2 points)
i
ii
iii
iv
sum = 0
sum 0
sum = 0
sum = 0
loop (i:=1 to 10) { loop (i := 1 to 10) { loop (i :=1 to 10) { loop (i:=1 to 10)
sum = sum+ i
sum = sum + i
sum = sum +i {
}
avg = sum/i
}
sum ++
avg=i/10
}
avg = sum/10
}
print (avg)
print (avg)
print (avg)
avg = sum/10
print (avg)
Aal
(Aa
Oil
, m & iv
O i&
po
0 1 & in
O 18.
Actate War
Go Settings to
0 1​

Answers

Answered by anchitsingh40
2

Answer:

ammskwaak(12) ahbns

Explanation:

please mark me as brainliest

Answered by diamondyoohcom
4

Answer:

15-110 (Reid-Miller). 7. Another for Loop Example int sum = 0; for (int i = 1; i <= n; i+=3) { sum += i;. } System.out.println(sum); sum i n = 11. 0. 1. 1. 4. 5. 7. 12. 10.

Explanation:

Similar questions