Timeline for Add two numbers
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 1, 2022 at 22:18 | comment | added | user111777 | @insertusernamehere By the original answer that i copied for a try, it wasn't specified that the behavior of the program depends on its name. But congratulations, it's a quite short answer. | |
| Apr 1, 2022 at 22:09 | comment | added | insertusernamehere | @Michel correct, see the two comments above. ;) | |
| Apr 1, 2022 at 22:06 | comment | added | user111777 |
it works only for some particular filenames, but 1.php will miss the answer.
|
|
| Jun 17, 2020 at 9:04 | history | edited | Community Bot |
Commonmark migration
|
|
| Oct 12, 2016 at 17:59 | comment | added | insertusernamehere |
@AlexHowansky Psssssssst – don't tell anybody. ;) This is the quirk, when running from a file. You can still execute it using the -r flag – then it's not a problem anymore.
|
|
| Oct 12, 2016 at 17:57 | comment | added | Alex Howansky | What if the source file name starts with a digit? :) | |
| Oct 6, 2016 at 17:02 | comment | added | insertusernamehere | @timmyRS The submission should work for a specific input format – two integers. I don't think it should handle other inputs, too. | |
| Oct 6, 2016 at 16:43 | comment | added | Paper |
Your script also accepts php sum.php 1 2 3 4 5 6 so I'm not 100% sure if that's ok.
|
|
| Jul 2, 2016 at 11:27 | history | answered | insertusernamehere | CC BY-SA 3.0 |