BinaryBoy's reply to sssb2000 #1015 @
There are better ways of doing this, but this should get you started.
[code]
#include <iostream>
int numbers[10];
for(int i = 0; i < 10; ++i) // Loop 10 times
{
std::cout << "Enter a number: "; // Display prompt
std::cin >> numbers; // Get number from user
}
for(int i = 0; i < 10; ++i) // Loop 10 times
{
// Do stuff with each number
std::cout << numbers << std::endl
}
[/code]