Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- void func() {
- int n;
- cin >> n;
- if (n!=0) {
- func();
- cout << ' '<<n;
- }
- }
- int main()
- {
- func();
- cout << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement