Question: I need help with this assignment I sent it already the first person did something different please I need someone that can help me with
I need help with this assignment I sent it already the first person did something different please I need someone that can help me with this Kotlin code.
Create a Kotlin program that prints a right triangle with a base of 5 K's:
K KK KKK KKKK KKKKK 1. First, use a while loop
2. Then use a for-loop
3. Print the triangle upside down with a reversed for-loop
4. Create a function that prints the triangle with any symbol and any base, and demonstrate with 10 K's.
Be sure to comment your code, and name your variables appropriately.
you can use Kotlin playground to write the code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
