Files
db-zaynullin/works/kotlin/kotlin 4.2 4ab
T

17 lines
602 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Часть А:
fun main(){
for(charge in 1 .. 4){
println("Ататка покемона заряжена на $charge %")
}
println("Покемон готов к использованию супер - способности!")
}
// Часть Б:
Сначала отсчитывается от 5 к 1 и выводим сообщение "До конца действия эффекта 'Сон' осталось - [текущее число]".
После того, как дойдем до 1, выводим: "Покемон проснулся и готов к бою!"