Выгрузка всех файлов

This commit is contained in:
2026-06-11 13:18:09 +03:00
parent 3a68b2452e
commit 74b18c6138
12 changed files with 443 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import kotlin.math.pow
fun main() {
print("Enter x: "); val x: Float = readln().toFloat()
print("Enter y: "); val y: Float = readln().toFloat()
val sum: Float = x + y
val sub: Float = x - y
val div: Float = x / y
val mult: Float = x * y
val pow: Float = x.pow(y)
val sqrt: Float = x.pow(1 / y)
println("""
Result:
---------------------
sum: $sum
sub: $sub
div: $div
mult: $mult
pow: $pow
sqrt: $sqrt
---------------------
""".trimIndent())
}