I want to calculate the sum of the given values but i recieve this error
Asked
Active
Viewed 681 times
1 Answers
1
Change var
to int
for (int value in values) {
sum += value;
}
and change
values = ['1, 3, 5, 7, 9']
to
values = [1, 3, 5, 7, 9]

Ashot Khachatryan
- 318
- 3
- 14