0

Write some code in PHP that prints the numbers 0-1000-0 on a new line. Ensuring it is the fastest code possible.

10th Apr 2018, 6:26 PM
Phőńe Aye Minn
Phőńe Aye Minn - avatar
9 ответов
+ 7
ok Jakob Marley for your correction thanks
10th Apr 2018, 7:01 PM
Vishal Pal❄️⚛️
Vishal Pal❄️⚛️ - avatar
+ 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.
10th Apr 2018, 6:50 PM
Vishal Pal❄️⚛️
Vishal Pal❄️⚛️ - avatar
+ 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
10th Apr 2018, 6:57 PM
Vishal Pal❄️⚛️
Vishal Pal❄️⚛️ - avatar
+ 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';
10th Apr 2018, 6:56 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 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.
10th Apr 2018, 6:59 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 2
You're welcome, Vishal.
10th Apr 2018, 7:03 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 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
10th Apr 2018, 7:14 PM
Damyan Petkov
Damyan Petkov - avatar
+ 1
10th Apr 2018, 7:00 PM
Phőńe Aye Minn
Phőńe Aye Minn - avatar
10th Apr 2018, 7:45 PM
Phőńe Aye Minn
Phőńe Aye Minn - avatar