+ 31
<CHALLENGE> 🦆Draw a Triangle🦆
Make the following pattern: 9 8 7 6 5 4 3 2 1 0 8 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 6 5 4 3 2 1 0 5 4 3 2 1 0 4 3 2 1 0 3 2 1 0 2 1 0 1 0 0 All languages welcome! here is my 1-line solution in case you're having trouble: https://code.sololearn.com/cZJ58atQz478/?ref=app Good Luck and Happy coding!! 🦆
38 Réponses
+ 26
//enough of pattern practice by ruby also 😂
https://code.sololearn.com/cVQF23rE540m/?ref=app
+ 21
https://code.sololearn.com/c38Qhz36E6lq/?ref=app
+ 11
https://code.sololearn.com/ce3zlZD7tZLn/?ref=app
+ 10
My colorful try, using HTML, JavaScript, jQuery and PHP.
https://code.sololearn.com/w0Hk9V4EOSMo/?ref=app
+ 9
Can I create something more ? :D
https://code.sololearn.com/Wc531mTgr1lQ/?ref=app
+ 7
This was my attempt at it with every language d:
https://code.sololearn.com/WPv89M384KY3/?ref=app
https://code.sololearn.com/wXvLvXG2kgr5/?ref=app
https://code.sololearn.com/cTw01IAXYEBY/?ref=app
https://code.sololearn.com/cUI02o2BsBLG/?ref=app
https://code.sololearn.com/c71ENixF8Qpw/?ref=app
https://code.sololearn.com/cUfon9DdbjH6/?ref=app
https://code.sololearn.com/c6OyS7lwHY7F/?ref=app
https://code.sololearn.com/cN4c8Ejyd6aN/?ref=app
https://code.sololearn.com/cgFvUVaRuW8b/?ref=app
+ 6
https://code.sololearn.com/WhSoh8qo4CQ4/?ref=app
+ 6
My code in Javascript.
https://code.sololearn.com/WoRii2rcPW20/?ref=app
+ 5
This is my simple code... 👇
https://code.sololearn.com/cfqhrpmcxyE1/?ref=app
+ 5
One loop solution... Kinda inspired. 😁
https://code.sololearn.com/c03BZJvC43qT/?ref=app
+ 4
my solution
https://code.sololearn.com/cgxs2ab9Yobd/?ref=app
+ 4
https://code.sololearn.com/c4eOzSD14F59/?ref=app
+ 4
+ 4
https://code.sololearn.com/c42l6uHhcRA8/?ref=app
+ 3
there in cs for a change:
https://code.sololearn.com/cs0MRP0WgNB0/?ref=app
+ 3
Here’s mine: https://code.sololearn.com/c2qDR2d5x6Nk/?ref=app