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
Binary file modified out/production/KotlinSprint/META-INF/KotlinSprint.kotlin_module
Binary file not shown.
10 changes: 10 additions & 0 deletions src/main/kotlin/lesson_2/lesson1_task1.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package lesson_2

fun main() {
val student1 = 3
val student2 = 4
val student3 = 3
val student4 = 5
val arithmeticMean:Double = ((student1+student2+student3+student4 + 0.0)/4)
println("Средний бал по классу: ${"%.2f".format(arithmeticMean)}")
}