confused as how to implement stars next to space "∆"
i am doing an assignment where you have to make a right-leaning triangle. However, I am confused as how to make the stars go be placed next to the "∆" (Place holder for " "). I tried using a for loop for the stars where they would supposedly be placed next to the space (∆), however, the output of the stars become jagged and the output overall doesn't look like a right-leaning triangle. Anyone out there who could help?



5 Replies
⌛ This post has been reserved for your question.
Hey @kripticc! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
i tried different orders of for and while loops but i have no clue what i'm doing wrong
so your problem is you cant use the stars and triangles together right
you can, but the ∆ (which is actually just a space, like " ", the ∆ is just a placeholder) and the * have to work together in a way where the * have to make a triangle leaning on the right.
i believe the only way this can work is to also make use of the spaces (unless there is a way there isnt)
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.