#include<iostream> #include <stdlib.h> using namespace std; int main() { long arr[10]; cout << "Please input 10 numbers:" << endl; for (int i = 0; i < 10; i++) { cin >> arr[i]; } cout << "The third number is :" << arr[2] << endl; system("pause"); return 0; }