Skip to main content
Commonmark migration
Source Link

#C (with no loops, yeah!) - 72 bytes

C (with no loops, yeah!) - 72 bytes

b(n,c){if(n){b(n-1,32);printf("%d%c",n,c);}}r(n){if(n){r(n-1);b(n,10);}}

This creates a function r(n) that can be used this way:

main(){ r(5); }

See it in action, here on tutorialspoint.com

It requires a very few tricks easily explained. I think it can be greatly improved.

#C (with no loops, yeah!) - 72 bytes

b(n,c){if(n){b(n-1,32);printf("%d%c",n,c);}}r(n){if(n){r(n-1);b(n,10);}}

This creates a function r(n) that can be used this way:

main(){ r(5); }

See it in action, here on tutorialspoint.com

It requires a very few tricks easily explained. I think it can be greatly improved.

C (with no loops, yeah!) - 72 bytes

b(n,c){if(n){b(n-1,32);printf("%d%c",n,c);}}r(n){if(n){r(n-1);b(n,10);}}

This creates a function r(n) that can be used this way:

main(){ r(5); }

See it in action, here on tutorialspoint.com

It requires a very few tricks easily explained. I think it can be greatly improved.

Update as FatalSleep suggested.
Source Link

#C (with no loops, yeah!) - 7572 bytes

b(n,c){if(n){b(n-1,' '32);printf("%d%c",n,c);}}r(n){if(n){r(n-1);b(n,'\n'10);}}

This creates a function r(n) that can be used this way:

main(){ r(5); }

See it in action, here on tutorialspoint.com

It requires a very few tricks easily explained. I think it can be greatly improved.

#C (with no loops, yeah!) - 75 bytes

b(n,c){if(n){b(n-1,' ');printf("%d%c",n,c);}}r(n){if(n){r(n-1);b(n,'\n');}}

This creates a function r(n) that can be used this way:

main(){ r(5); }

See it in action, here on tutorialspoint.com

It requires a very few tricks easily explained. I think it can be greatly improved.

#C (with no loops, yeah!) - 72 bytes

b(n,c){if(n){b(n-1,32);printf("%d%c",n,c);}}r(n){if(n){r(n-1);b(n,10);}}

This creates a function r(n) that can be used this way:

main(){ r(5); }

See it in action, here on tutorialspoint.com

It requires a very few tricks easily explained. I think it can be greatly improved.

#C (with no loops, yeah!) - 7475 bytes

b(n,c){if(n){b(n-1,' ');printf("%d%c",n,c);}}r(n){if(n){r(n-1);b(n,'\n');}}

So, thisThis creates a function r(n) that can be used this way  :

main(){ r(5); }

See it in action, here on tutorialspoint.com

It requires a very few tricks easily explained. I think it can be greatly improved.

#C (with no loops, yeah!) - 74 bytes

b(n,c){if(n){b(n-1,' ');printf("%d%c",n,c);}}r(n){if(n){r(n-1);b(n,'\n');}}

So, this creates a function r(n) that can be used this way  :

main(){ r(5); }

See it in action, here on tutorialspoint.com

It requires a very few tricks easily explained. I think it can be greatly improved.

#C (with no loops, yeah!) - 75 bytes

b(n,c){if(n){b(n-1,' ');printf("%d%c",n,c);}}r(n){if(n){r(n-1);b(n,'\n');}}

This creates a function r(n) that can be used this way:

main(){ r(5); }

See it in action, here on tutorialspoint.com

It requires a very few tricks easily explained. I think it can be greatly improved.

Remove string to use char
Source Link
Loading
Removed useless >0; added 23 characters in body
Source Link
Loading
Source Link
Loading