1
1
Fork 0

Merge pull request #1 from BruceEckel/patch-1

Update Task.kt
This commit is contained in:
Svetlana Isakova 2019-08-06 19:50:00 +02:00 committed by GitHub
commit 97b38a8790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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:
#
###
#####
#######
*/
*/