diff --git a/Programming Basics/Summary 1/Exercise 3/src/Task.kt b/Programming Basics/Summary 1/Exercise 3/src/Task.kt index 5dcf7a01..d9fd2e58 100644 --- a/Programming Basics/Summary 1/Exercise 3/src/Task.kt +++ b/Programming Basics/Summary 1/Exercise 3/src/Task.kt @@ -1,6 +1,6 @@ package summary3 -fun printPyramid(n: Int) { +fun printTriangle(n: Int) { for (i in 1..n) { repeat(n - i) { print(' ') @@ -13,11 +13,11 @@ fun printPyramid(n: Int) { } fun main() { - printPyramid(4) + printTriangle(4) } /* Output: # ### ##### ####### -*/ \ No newline at end of file +*/