Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/out/
/.idea/*
/out/
5 changes: 0 additions & 5 deletions .idea/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/kotlinc.xml

This file was deleted.

26 changes: 0 additions & 26 deletions .idea/libraries/KotlinJavaRuntime.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

Binary file not shown.
Binary file removed out/production/KotlinSprint/MainKt.class
Binary file not shown.
8 changes: 8 additions & 0 deletions src/main/kotlin/lesson_1/lesson1_task1.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package lesson_1

fun main() {
val numberOfOrders: Int = 75
val textThanksForThePurchase: String = "Спасибо за покупку в нашем интернет магазине!"
println(numberOfOrders)
println(textThanksForThePurchase)
}
12 changes: 12 additions & 0 deletions src/main/kotlin/lesson_1/lesson1_task2.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package lesson_1

fun main() {
val numberOfOrders: Int = 75
val textThanksForThePurchase: String = "Спасибо за покупку в нашем интернет магазине!"
println(numberOfOrders)
println(textThanksForThePurchase)
var countWorkers: Int = 2000
//println(countWorkers)
countWorkers = 2000 - 1
println(countWorkers)
}
13 changes: 13 additions & 0 deletions src/main/kotlin/lesson_1/lesson1_task3.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package lesson_1

fun main() {
val year: Int = 1961
var hour: String = "09"
var minut: String = "07"
println(hour)
println(minut)
hour = "10:"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В задаче сказано:

Затем измени значения переменных hour и minute, чтобы они теперь имели значение часа и минуты посадки.

Давай уберем из hour двоеточие, напечатай его через print()

minut = "55"
print(hour)
print(minut)
}