Skip to content

Instantly share code, notes, and snippets.

@angelabauer
Created August 14, 2019 11:39
Show Gist options
  • Save angelabauer/d3695e80b340e6bc115adc4f00c77fbb to your computer and use it in GitHub Desktop.
Save angelabauer/d3695e80b340e6bc115adc4f00c77fbb to your computer and use it in GitHub Desktop.
var numbers = [45, 73, 195, 53]
var n1 = numbers[0] * numbers[1]
var n2 = numbers[1] * numbers[2]
var n3 = numbers[2] * numbers[3]
var computedNumbers = [n1, n2, n3]
print(computedNumbers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment