Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tasks.test {
}

kotlin {
jvmToolchain(11)
jvmToolchain(17)
}

detekt {
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/mate/academy/BuyProducts.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package mate.academy

fun getTotalPriceMessage(client: String, price: Int, quantity: Int): String {
return ""

val cost = price * quantity
return "$client has to pay $cost per $quantity products"
}
Loading