#include
#include
using namespace std;
int main()
{
int mas[5];
for(int i = 0; i < 5; i++){
cout << "Input element[" << i << "] = "; cin >> mas[i];
while(mas[i] < 0){
cout << "Input element[" << i << "] = "; cin >> mas[i];
}
}
cout
for(int i = 0; i < 5; i++){
cout
}
cout
for(int i = 4; i >= 0; i--){
if(mas[i] != 0){
cout
}
}
cout
system("pause");
return 0;
}