Forgot password? New user? Sign up
Existing user? Log in
Layla sells ice cream for 3 dollars per scoop, and she wrote the following python function to help her calculate how much to charge for n scoops.
1 2 3 4 5 6 7 8 9
# Layla's calculator - in Python def calculate_n_times_3(n): i = 0 answer = 0 while (i < n): answer = answer + 3 i = i + 1 return answer
There is a number A, such that calling calculate_n_times_3(A) returns 33. What is A?
Problem Loading...
Note Loading...
Set Loading...