fun example1(a : Int, b : Int) : Int {
if(a>b){
return a
}else{
return b
}
}
fun example2(a : Int, b : Int) = if(a>b) a else b
위 아래는 같은 조건식이다
참조 : 유투브 강의 Code with Joyce
fun example1(a : Int, b : Int) : Int {
if(a>b){
return a
}else{
return b
}
}
fun example2(a : Int, b : Int) = if(a>b) a else b
위 아래는 같은 조건식이다
참조 : 유투브 강의 Code with Joyce
For further actions, you may consider blocking this person and/or reporting abuse
Boris Martinovic -
Jess Lee -
dev.to staff -
Nicolas Frankel -
Top comments (0)