int main()
{
int Count, Sum = 0;
int Group[10];
cout << "-303 to stop\n";
for(Count = 0; Count < 10; Count++) {
cout << "Enter a value: ";
cin >> Group[Count];
if(Group[Count] == -303)
break;
}
int T;
for(T = 0; T < Count; T++)
Sum += Group[T];
for(T = 0; T < Count; T++)
cout << "Value[" << T << "]= " << Group[T] << endl;
}
How can I change each of the values from this array? Suppose I want to multiply each value by 2 for example.
Well, just like you can read from
Group[T]to print it on the screen, you can assign toGroup[T].So, for example: