Răspuns :
#include <iostream>
using namespace std;
int main() {
int a,b,i dir;
cine>>a>>b;
for (i=0;i<a;i++)
ciuta<<i<<'';
If (a<b)
dir=1;
Elise
dir=-1;
for (i=a;i !=b;i += dir )
cout<<i<<' ';
t
return 0;
}
sper că te-a ajutat
int a, b;
cin >> a >> b;
for (int i=0; i<a; i++) {
cout << i << ", ";
}
if (a<b) for (int i=a; i<=b; i++) {
cout << i << ", ";
}
else for (int i=a; i>=b; i--) {
cout << i << ", ";
}