Question: Write Pseudo code to perform the following code Convert the Pseudo code into Kotlin. Read an integer from the user and then draw a right

Write Pseudo code to perform the following code

Convert the Pseudo code into Kotlin.

Read an integer from the user and then draw a right triangle to the screen whose height and width are specified by the number entered. Use a loop to draw the triangle. Be sure to handle any number that is input between 0 and N

if 8 was entered, your program will draw a right triangle to the screen using "*" for each dot like so:

* ** * * * * * * * * * * ********

Part 2 -

Write a second part to the program that will take the same input number and draw a triangle using the numbers like this. You will have to use a loop within a loop.

1 12 123 1234 12345 123456 1234567 12345678

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!