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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started