Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void res(int n) {
- if (n > 0) {
- res(n / 10);
- cout << n % 10;
- }
- return;
- }
- int main() {
- int a, b;
- cin >> a >> b;
- for (int i = a; i <= b; ++i) {
- res(i);
- cout << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement