#include <iostream> using namespace std; int main() { int x,y; cin>>x>>y; if(x<y) { do { cout<<x<<" "; x++ } while (x<=y); }else { do { cout<<x<<" "; x--; } while (x>=y); } return 0; }
2 10
prog.cpp: In function ‘int main()’: prog.cpp:14:1: error: expected ‘;’ before ‘}’ token } ^
Standard output is empty