Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- const int n = 9;
- int i, a[n],N,;
- cout << "enter nine-digit nomber";
- cin >> N;
- for (i = n; i > 0; i--)
- {
- a[i] = N%10;
- N = N / 10;
- cout << a[i] << ' ';
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment