Advertisement
Uncleeee

Untitled

Apr 21st, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. void func() {
  7. int n;
  8. cin >> n;
  9. if (n!=0) {
  10. func();
  11. cout << ' '<<n;
  12. }
  13. }
  14.  
  15. int main()
  16. {
  17. func();
  18. cout << '\n';
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement