Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

made it output only the last Fibonacci number instead of all of them
Source Link

C (gcc), 8684 bytes (no header/footer)

t
#ifndef A
,b;main(a){
#define At
#define A }
#endif
printf("%d\n""%d",a);t=a;a=a+b;b=t;A;}
#endif
t=a;a=a+b;b=t;A

Try it online! Try it online!

This really shows the power of the preprocessor πŸ’ͺ

C (gcc), 86 bytes (no header/footer)

t
#ifndef A
,b;main(a){
#define At
#define A }
#endif
printf("%d\n",a);t=a;a=a+b;b=t;A

Try it online!

This really shows the power of the preprocessor πŸ’ͺ

C (gcc), 84 bytes (no header/footer)

t
#ifndef A
,b;main(a){
#define At
#define A printf("%d",a);}
#endif
t=a;a=a+b;b=t;A

Try it online!

This really shows the power of the preprocessor πŸ’ͺ

Source Link

C (gcc), 86 bytes (no header/footer)

t
#ifndef A
,b;main(a){
#define At
#define A }
#endif
printf("%d\n",a);t=a;a=a+b;b=t;A

Try it online!

This really shows the power of the preprocessor πŸ’ͺ

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /