From 2dcffbb87514c878177d9fce3b51034174a41611 Mon Sep 17 00:00:00 2001 From: g1reee Date: Thu, 24 Sep 2026 13:33:19 +0300 Subject: [PATCH] add lab 2 --- works/lab-02/src/Pokedex/.gitignore | 32 ++++++++++++++++++++++++++++ works/lab-02/src/Pokedex/src/Main.kt | 14 ++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 works/lab-02/src/Pokedex/.gitignore create mode 100644 works/lab-02/src/Pokedex/src/Main.kt diff --git a/works/lab-02/src/Pokedex/.gitignore b/works/lab-02/src/Pokedex/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/works/lab-02/src/Pokedex/.gitignore @@ -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 \ No newline at end of file diff --git a/works/lab-02/src/Pokedex/src/Main.kt b/works/lab-02/src/Pokedex/src/Main.kt new file mode 100644 index 0000000..7265465 --- /dev/null +++ b/works/lab-02/src/Pokedex/src/Main.kt @@ -0,0 +1,14 @@ +//TIP To Run code, press or +// click the icon in the gutter. +fun main() { + val name = "Kotlin" + //TIP Press with your caret at the highlighted text + // to see how IntelliJ IDEA suggests fixing it. + println("Hello, " + name + "!") + + for (i in 1..5) { + //TIP Press to start debugging your code. We have set one breakpoint + // for you, but you can always add more by pressing . + println("i = $i") + } +} \ No newline at end of file