eolymp
bolt
Try our new interface for solving problems
Problems

Odds in the interval

published at 1/3/24, 8:18:17 pm

include <iostream>

include <cmath>

using namespace std;

int main() { long long a,b,i; cin>>a>>b; i=a; for(i<a;i<=b;i=i+2){ if(i%2==0) {i=i+1;} cout<<i<<" "; }

return 0;

} 100% code

published at 2/23/24, 1:03:46 pm

include <iostream>

using namespace std;

int main() { long long a,b,i; cin>>a>>b; i=a; for(i<a;i<=b;i=i+2) { if(i%2==0) {i=i+1;} cout<<i<<" "; }

}

published at 2/25/24, 6:57:03 pm

include <bits/stdc++.h>

using namespace std;

int main() { int n,a,b,c,d,i,son,hasil=1; cin>>a>>b; for(a=i;i<=b;i++) if(i%2!=0) cout<<i;

}

published at 2/25/24, 6:57:04 pm

include <bits/stdc++.h>

using namespace std;

int main() { int n,a,b,c,d,i,son,hasil=1; cin>>a>>b; for(a=i;i<=b;i++) if(i%2!=0) cout<<i;

}

published at 2/25/24, 6:57:05 pm

include <bits/stdc++.h>

using namespace std;

int main() { int n,a,b,c,d,i,son,hasil=1; cin>>a>>b; for(a=i;i<=b;i++) if(i%2!=0) cout<<i;

}