generated from justuser-31/code_projects_template
Выгрузка всех файлов
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
fun main() {
|
||||
print("Enter day of the month: "); val day: Int = readln().toInt()
|
||||
print("Enter name of the month: "); val month: String = readln()
|
||||
print("Enter year: "); val year: Int = readln().toInt()
|
||||
|
||||
val yyyy_mm_dd = "$year-$month-$day"
|
||||
val dd_mm_yyyy = "$day-$month-$year"
|
||||
|
||||
println("""
|
||||
Result:
|
||||
-----------------------
|
||||
yyyy_mm_dd: $yyyy_mm_dd
|
||||
dd_mm_yyyy: $dd_mm_yyyy
|
||||
-----------------------
|
||||
""".trimIndent())
|
||||
}
|
||||
Reference in New Issue
Block a user