Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val expense1 = ("Metro", 4)
- val expense2 = ("Pizza", 10)
- val expense3 = ("Groceries", 20)
- val expense4 = ("Coffee Break at work", 3)
- val expense5 = ("New iPhone", 600) // the task here is to define a list of expenses – so the challenge is to figure out how to represent individual expenses and then unite them in one list.
- val m1 = expense1._2
- val m2 = expense2._2
- val m3 = expense3._2
- val m4 = expense4._2
- val m5 = expense5._2
- println(m1)
- println(m2)
- println(m3)
- println(m4)
- println (m5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement