arrays

can i ask the user to enter values for the array?
if so..then kindly tel me how.
Using a loop.

1
2
3
4
int array[4];
for (int i = 0; i < 4; i++) {
	cin >> array[i];
}
Topic archived. No new replies allowed.