Skip to content

Instantly share code, notes, and snippets.

@makiftutuncu
Last active November 28, 2015 22:58
Show Gist options
  • Save makiftutuncu/06bc73fe050ce6255286 to your computer and use it in GitHub Desktop.
Save makiftutuncu/06bc73fe050ce6255286 to your computer and use it in GitHub Desktop.
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