Post History
C (clang), 47 45 43 bytes i,j;main(){for(;printf("%i ",i-=~j);j+=2);} Try it online! Golfed 2 bytes from inspiration of @Shaggy's answer. Golfed 2 bytes by @m90.
Answer
#4: Post edited
# [C (clang)], <s>47</s> 45 bytes- <!-- language-all: lang-c -->
i,j;main(){for(j=1;printf("%i ",i+=j);j+=2);}[Try it online!][TIO-ks8xvti7]Golfed 2 bytes from inspiration of [**@Shaggy**](https://codegolf.codidact.com/users/53588)['s answer](https://codegolf.codidact.com/posts/283341/283345#answer-283345).- [C (clang)]: http://clang.llvm.org/
[TIO-ks8xvti7]: https://tio.run/##S9ZNzknMS/@vnJmXnFOakqpgU1ySkpmvl2H3P1Mnyzo3MTNPQ7M6Lb9II8vW0LqgKDOvJE1DSTVTQUknU9s2S9M6S9vWSNO69v9/AA "C (clang) – Try It Online"
- # [C (clang)], <s>47</s> <s>45</s> 43 bytes
- <!-- language-all: lang-c -->
- i,j;main(){for(;printf("%i ",i-=~j);j+=2);}
- [Try it online!][TIO-ks927ic2]
- Golfed 2 bytes from inspiration of [**@Shaggy**](https://codegolf.codidact.com/users/53588)['s answer](https://codegolf.codidact.com/posts/283341/283345#answer-283345). Golfed 2 bytes by [**@m90**](https://codegolf.codidact.com/users/54227).
- [C (clang)]: http://clang.llvm.org/
- [TIO-ks927ic2]: https://tio.run/##S9ZNzknMS/@vnJmXnFOakqpgU1ySkpmvl2H3P1Mnyzo3MTNPQ7M6Lb9Iw7qgKDOvJE1DSTVTQUknU9e2LkvTOkvb1kjTuvb/fwA "C (clang) – Try It Online"
#3: Post edited
# [C (clang)], 47 bytes- <!-- language-all: lang-c -->
i,j;main(){for(j=1;printf("%i ",i);i+=j,j+=2);}[Try it online!][TIO-ks8szfkr]Applies the equation from [Somewhere Else](https://math.stackexchange.com/a/3946753/939194).- [C (clang)]: http://clang.llvm.org/
[TIO-ks8szfkr]: https://tio.run/##S9ZNzknMS/@vnJmXnFOakqpgU1ySkpmvl2H3P1Mnyzo3MTNPQ7M6Lb9II8vW0LqgKDOvJE1DSTVTQUknU9M6U9s2SydL29ZI07r2/38A "C (clang) – Try It Online"
- # [C (clang)], <s>47</s> 45 bytes
- <!-- language-all: lang-c -->
- i,j;main(){for(j=1;printf("%i ",i+=j);j+=2);}
- [Try it online!][TIO-ks8xvti7]
- Golfed 2 bytes from inspiration of [**@Shaggy**](https://codegolf.codidact.com/users/53588)['s answer](https://codegolf.codidact.com/posts/283341/283345#answer-283345).
- [C (clang)]: http://clang.llvm.org/
- [TIO-ks8xvti7]: https://tio.run/##S9ZNzknMS/@vnJmXnFOakqpgU1ySkpmvl2H3P1Mnyzo3MTNPQ7M6Lb9II8vW0LqgKDOvJE1DSTVTQUknU9s2S9M6S9vWSNO69v9/AA "C (clang) – Try It Online"
#2: Post edited
- # [C (clang)], 47 bytes
- <!-- language-all: lang-c -->
- i,j;main(){for(j=1;printf("%i ",i);i+=j,j+=2);}
- [Try it online!][TIO-ks8szfkr]
- [C (clang)]: http://clang.llvm.org/
- [TIO-ks8szfkr]: https://tio.run/##S9ZNzknMS/@vnJmXnFOakqpgU1ySkpmvl2H3P1Mnyzo3MTNPQ7M6Lb9II8vW0LqgKDOvJE1DSTVTQUknU9M6U9s2SydL29ZI07r2/38A "C (clang) – Try It Online"
- # [C (clang)], 47 bytes
- <!-- language-all: lang-c -->
- i,j;main(){for(j=1;printf("%i ",i);i+=j,j+=2);}
- [Try it online!][TIO-ks8szfkr]
- Applies the equation from [Somewhere Else](https://math.stackexchange.com/a/3946753/939194).
- [C (clang)]: http://clang.llvm.org/
- [TIO-ks8szfkr]: https://tio.run/##S9ZNzknMS/@vnJmXnFOakqpgU1ySkpmvl2H3P1Mnyzo3MTNPQ7M6Lb9II8vW0LqgKDOvJE1DSTVTQUknU9M6U9s2SydL29ZI07r2/38A "C (clang) – Try It Online"
#1: Initial revision
# [C (clang)], 47 bytes <!-- language-all: lang-c --> i,j;main(){for(j=1;printf("%i ",i);i+=j,j+=2);} [Try it online!][TIO-ks8szfkr] [C (clang)]: http://clang.llvm.org/ [TIO-ks8szfkr]: https://tio.run/##S9ZNzknMS/@vnJmXnFOakqpgU1ySkpmvl2H3P1Mnyzo3MTNPQ7M6Lb9II8vW0LqgKDOvJE1DSTVTQUknU9M6U9s2SydL29ZI07r2/38A "C (clang) – Try It Online"