Сделал первую лабу

This commit is contained in:
2026-09-16 19:17:48 +03:00
parent 8d3c2969ec
commit 87f7abd7f6
8 changed files with 158 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Kotlin ###
.kotlin
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store
+30
View File
@@ -0,0 +1,30 @@
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
fun main() {
print("Введите тип карты: ")
val cardType: String = readln()
print("Введите подтип карты: ")
val cardSubtype: String = readln()
print("Введите название карты: ")
val cardName: String = readln()
print("Введите описание основного эффекта: ")
val effectText: String = readln()
print("Введите правило подтипа: ")
val ruleText: String = readln()
print("Введите имя художника: ")
val illustrator: String = readln()
val healAmount: Int = 60
val cardNumber: Int = 105
val totalInSet: Int = 106
println("======================================================================")
println("[$cardType] $cardName [$cardSubtype]")
println("----------------------------------------------------------------------")
println("Эффект: $effectText")
println("Правило: $ruleText")
println("----------------------------------------------------------------------")
println("Илл. $illustrator $cardNumber/$totalInSet ★")
println("======================================================================")
}