0
Write some code in PHP that prints the numbers 0-1000-0 on a new line. Ensuring it is the fastest code possible.
9 ответов
+ 7
ok Jakob Marley for your correction
thanks
+ 6
fastest code possible
I knew you mean shortest code possible
Is it a homework or assignment/Challenge huh
and what is #credit in description Phőńe Aye Minn
Please elaborate your question about what you want a code as homework (something else) or this is a challenge/assignment.
+ 5
posting for fun is
I think not allowed because sometimes that could be cautious as marking with spam or unrelated to Q/A section
what is #credit Phőńe Aye Minn
+ 3
If it's just for fun, post up what you tried so we can see your answer also.
Here is mine:
echo '<br>0-1000-0';
+ 2
If it's programming related, than it's within the realms of the content guidelines. However, if someone is posting something that's for everyone to try, then one should equally post what their solution is.
+ 2
You're welcome, Vishal.
+ 2
here is my solution with one while loop, just change $n_max value. Keep in mind that sololearn have execution time limit so 0-1000-0 is not possible in sololearn php console.
https://code.sololearn.com/wJqcTXmA2h12/?ref=app
+ 1
OK? Vishal Pal
+ 1
Here is my code.
https://code.sololearn.com/w32kgfP1gtEG/?ref=app