1
1
Fork 0

Merge pull request #17 from Geravant/igor/programming-basics-if-expressions-exercise2-EDC-415

refactor(Programming Basics - if Expressions - Exercise 2): The condi…
This commit is contained in:
Svetlana Isakova 2021-07-19 15:53:15 +02:00 committed by GitHub
commit f0f89d93fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
package ifExpressionsExercise2
fun abs(number: Int): Int =
if (number > 0) number else -number
if (number >= 0) number else -number
fun main() {
println(abs(-19)) // 19

View File

@ -4,7 +4,7 @@ files:
visible: true
placeholders:
- offset: 88
length: 35
length: 36
placeholder_text: TODO()
- name: test/Tests.kt
visible: false