Sandbox

1
2
3
4
5
6
7
8
9
10
// test code here!
print((200 * 7)/2)
 
print("hello from iOS team")
 
var question = "Ready to write your first lines of Swift code?"
print(question)
 
var response = "Yeah! I'm ready!"
print(response)
1
2
3
4
5
6
7
8
9
var numberOfServingsForRecipe = 4
var desiredNumberOfServings = 8
 
var servingsFactor = desiredNumberOfServings/numberOfServingsForRecipe
 
var poundsOfTomatoesForRecipe = 2
var amountToUseToday = poundsOfTomatoesForRecipe * servingsFactor
 
print(amountToUseToday)