1
1
Fork 0
AtomicKotlinCourse/Programming Basics/Looping & Ranges/Exercise 4/task.md

241 B

Looping & Ranges (#4)

Display half of a triangle. For an argument of 6 the function showHalfTriangle() should display the following:

#
##
###
####
#####
######

Now rewrite the function to use repeat instead of a for loop.