Advertisement
Guest User

Untitled

a guest
Nov 28th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def topla(sayi1: Int, sayi2: Int): Int = sayi1 + sayi2
  2.  
  3. def toplamCiftMi(sayi1: Int, sayi2: Int): Boolean = {
  4. val toplam: Int = topla(sayi1, sayi2)
  5. val mod2: Boolean = toplam % 2
  6. mod2 == 0
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement