#include <iostream>
using namespace std;
void f(int x, int y){
if(x > y)
return;
cout << x << "\n";
return f(x + 1, y);
}
void solve(){
int a, b;
cin >> a >> b;
f(a, b);
int main(){
solve();
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
void f(int x, int y){
if(x > y)
return;
cout << x << "\n";
return f(x + 1, y);
}
void solve(){
int a, b;
cin >> a >> b;
f(a, b);
}
int main(){
solve();
}