Skip to content

Commit

Permalink
Omitting Argument Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurwrls committed Nov 3, 2022
1 parent 8155ee1 commit 842cdbc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Codecademy.playground/Pages/Museum.xcplaygroundpage/Contents.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


let adults = 2
let students = 15

// Write your code below 🏛️

func museumEntry(_ numAdults: Int, _ numStudents: Int) -> Int {
let studentTicket = 14
let adultTicket = 25
let total = (studentTicket * numStudents) + (adultTicket * numAdults)
return total
}

print(museumEntry(adults, students))

0 comments on commit 842cdbc

Please sign in to comment.