Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- void the_func(int n)
- {
- if(!n) return;
- int f = n % 10;
- the_func(n / 10);
- cout << f << " ";
- return;
- }
- int main()
- {
- int n = 1000;
- the_func(n);
- }
Advertisement
Add Comment
Please, Sign In to add comment