Рустем Р Рустем Регистрация 19 Апр 2013 Сообщения 83 Репутация 0 Спасибо 0 Монет 0 30 Окт 2016 #1 #include #include using namespace std; int main() { int arr [5]; int i = 0; while (i < 5) { cout << "[" << i + 1 << "]" << ": "; cin >> arr ; i++; } cout << " Your array: "; while (i < 5) { cout << arr << " "; i++; } return 0; }
#include #include using namespace std; int main() { int arr [5]; int i = 0; while (i < 5) { cout << "[" << i + 1 << "]" << ": "; cin >> arr ; i++; } cout << " Your array: "; while (i < 5) { cout << arr << " "; i++; } return 0; }