Home › Forums › Decaffeinated Coffee › Computer Programmer › Reply To: Computer Programmer
April 29, 2011 3:09 pm at 3:09 pm
#763815
Avram in MD
Participant
Clairvoyant,
When I ran her request, I returned 7 cartons of milk:-)
The pseudocode for her request:
totalCartonsMilk = 1 # She asked to get 1 carton of milk separate from the if-statement.
if(eggs) {
totalCartonsMilk = totalCartonsMilk + 6
}
return totalCartonsMilk