Scala ile ilk uygulamada ek örnekler
def topla(sayi1: Int, sayi2: Int): Int = sayi1 + sayi2 | |
def toplamCiftMi(sayi1: Int, sayi2: Int): Boolean = { | |
val toplam: Int = topla(sayi1, sayi2) | |
val mod2: Int = toplam % 2 | |
mod2 == 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment