Timeline for Print/Output the L-phabet
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 12 at 15:44 | comment | added | kwokkie |
You can save some more bytes by assuming the calls as f(64,0) , this makes the )+64) later unnecessary.
|
|
Apr 13, 2017 at 12:39 | history | edited | CommunityBot |
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
|
|
Aug 2, 2016 at 9:03 | history | edited | sigalor | CC BY-SA 3.0 |
added 7 characters in body
|
Aug 2, 2016 at 9:03 | comment | added | ABcDexter | @sigalor Yes precisely. I was trying myself in C, but saw that your code is shorter :) | |
Aug 2, 2016 at 9:01 | history | edited | sigalor | CC BY-SA 3.0 |
added 7 characters in body
|
Aug 2, 2016 at 9:01 | comment | added | sigalor |
@ABcDexter Yep, that should work (the rule If it is a function, it must be runnable by only needing to add the function call to the bottom of the program. does not seem to forbid this, because it doesn't say wheather parameters to the function call are allowed). I let main call just f(0) anyway, because the initialization for the second for loop (the one with j as counter) is necessary nonetheless.
|
|
Aug 2, 2016 at 7:33 | comment | added | ABcDexter |
Can you remove that i=0; and make the function call as f(0,0) ?
|
|
Aug 1, 2016 at 7:34 | comment | added | sigalor | @owacoder Thanks, fixed it. | |
Aug 1, 2016 at 7:34 | history | edited | sigalor | CC BY-SA 3.0 |
Made use of the fact that there only needs to be a function instead of a whole program (suggested by owacoder).
|
Aug 1, 2016 at 2:08 | comment | added | owacoder |
Save 8 bytes: f(i,j){for(i=0;++i<27;puts(""))for(j=0;++j<27;putchar((i>j?i:j)+64));} . You don't need a full program, just a function that has performs the same operations every time it is called (which this does).
|
|
Jul 31, 2016 at 23:31 | history | answered | sigalor | CC BY-SA 3.0 |