diff --git a/2_controle_de_fluxo/5_expressoes_condicionais/exemplo1.kt b/2_controle_de_fluxo/5_expressoes_condicionais/exemplo1.kt index 6c7828b..8eba6ff 100644 --- a/2_controle_de_fluxo/5_expressoes_condicionais/exemplo1.kt +++ b/2_controle_de_fluxo/5_expressoes_condicionais/exemplo1.kt @@ -4,5 +4,7 @@ * @see [Conditional Expression](https://play.kotlinlang.org/byExample/02_control_flow/05_Conditional%20expression) */ fun main() { - - } \ No newline at end of file + fun max(a: Int, b: Int) = if (a > b) a else b // 1 + + println(max(99, -42)) + }