Reply To: Computer Programmer

Home Forums Decaffeinated Coffee Computer Programmer Reply To: Computer Programmer

#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