Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package exercises
- object GreetingFunction extends App {
- def function(aName:String, aAge:Int): Unit={
- println("Hi, my name is "+ aName + " and I am " + aAge+ " years old")
- }
- function("Nikola", 17)
- }
- /*
- def function(aName:String, aAge:Int): String={
- "Hi, my name is "+ aName + " and I am " + aAge+ " years old."
- println(greetingForKids("David", 12))
- }
- DR NACHIN
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement