Checkpoint 14.12.1.
The following program segment should print out the cost for each shirt if they are to buy 2 and get the third free but were originally $45 each. The blocks have been mixed up. Drag the blocks from the left and put them in the correct order on the right. Click the
Check
button to check your solution.
price = 45 --- totalCost = price * 2 --- pricePerShirt = totalCost / 3 --- print(pricePerShirt)