Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void rec() {
- int n;
- cin >> n;
- if (n != 0) {
- rec();
- cout << n << " ";
- }
- }
- int task1()
- {
- rec();
- return 0;
- }
- int main()
- {
- task1();
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement