From f240d327b7d772b24011da45213a31d9b95b4d69 Mon Sep 17 00:00:00 2001 From: Bruce Eckel Date: Sun, 28 Jul 2019 16:15:28 -0600 Subject: [PATCH] Update Task.kt Triangle rather than Pyramid --- Programming Basics/Summary 1/Exercise 3/src/Task.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +*/