diff --git a/Java/lab_1/lab_1.kt b/Java/lab_1/lab_1.kt index 38039eb..48a2ef6 100644 --- a/Java/lab_1/lab_1.kt +++ b/Java/lab_1/lab_1.kt @@ -1,10 +1,10 @@ fun protectedInput(variableName: String): Int { do { try { - print("Enter $variableName: "); + print("Enter $variableName: ") return readln().toInt() } catch (e: Exception) { - println("${variableName.uppercase()} must be an integer!"); + println("${variableName.uppercase()} must be an integer!") } } while (true) }