Quick actions

cmd+k|ctrl+k

Navigation

Languages

Expression And Statement

Snippet info

Language

Kotlin

Visibility

public

Author

habib17

Created

2019-11-01T01:12:43Z

Updated

2019-11-01T01:14:12Z

fun main(args : Array<String>){
 //  functionOnVariableSum(3, 1*4)
   //println(functionOnVariableSum(3, 1*4))
   val value1 = 3
   val value2 = 1*4
    println(functionOnVariableSum(value1, value2))
}

fun ifOnVariable(){
    val openOffice = 7
    val now = 8
    val office = if (now > openOffice) "Office already open" else "office close"
    println(office)
    
}

fun functionOnVariableSum(value1: Int, value2: Int) = value1 + value2

INFO