+ 1

can you write smaller and simpler code for drawing triangles

I wrote this code, but it is complicated and difficult for me to understand, it does not matter, you did not understand the code, only based on the output, can anyone suggest a better idea for this output? https://code.sololearn.com/cUWr5VnvJc8b/?ref=app

13th Feb 2021, 4:51 PM
imAlireza
imAlireza - avatar
3 Réponses
+ 4
not necessarly easiest to understand, but shorter (with fixed base triangle size): https://code.sololearn.com/c32ZubnjdYBd/?ref=app inially, I was implementing this one (were base triangle size equals to pattern size -- input): https://code.sololearn.com/cX6Immzm67iL/?ref=app
13th Feb 2021, 6:21 PM
visph
visph - avatar
0
Let me try
13th Feb 2021, 5:00 PM
Shadoff
Shadoff - avatar
0
thanks , its so good 🌷visph
13th Feb 2021, 10:28 PM
imAlireza
imAlireza - avatar