231k views
4 votes
Read the following code:

X = totalcost
print(x / 2)
What value will this code calculate? (5 points)
A. Double the total cost
B. Half the total cost
C. Quarter of the total cost
D. Two percent of the total cost

1 Answer

1 vote
B. Half the total cost
User Moghya
by
5.4k points