Advertisement
mehedi2022

Vacation calculartor_2

Sep 4th, 2022 (edited)
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.21 KB | None | 0 0
  1. val flightHelsinkiBersilona = 200
  2. val costHotel = 80
  3. val costDaily = 30
  4. val durationStay = 4
  5. val totalCost = flightHelsinkiBersilona+durationStay*(costHotel+costDaily)
  6. println ("Total cost:" + s"$totalCost USD")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement