How to change my Yang Hui triangle into an isosceles triangle | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to change my Yang Hui triangle into an isosceles triangle

https://code.sololearn.com/chN3WQcDXakw/?ref=app

1st Apr 2023, 6:35 AM
ZBM066
1 Answer
0
Maybe increment from 0 up to the users input and then back down to 0 ? In your code it starts off as tall as the users input and then it decreases down to 0
2nd Apr 2023, 5:17 PM
Benjamin Davis
Benjamin Davis - avatar