Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int x[10];
- for (int i = 0; i <= 9; i++)
- {
- cout << "x[" << i << "]=";
- cin >> x[i];
- if (!cin);
- {
- cout << "Error,Bad input!\n";
- return 1;
- }
- }
- for (int i = 9; i >= 0; i--)
- cout << x[i] << "\n";
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement