fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int N;
  6. cin>>N;
  7. for (int i=1; i <= N; i+=N+2){
  8. cout<<i<< " ";
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0s 5320KB
stdin
50
stdout
1