Revision
So you think you can count
Round and other functions
Revision and practice
25. Exercise 2

Instruction

Good. Another one coming.

Exercise

A healing potion costs 50 gold. For each character with an account balance of at least 100, calculate how many healing potions it can buy (column name potion_amount) and how much money it will have left as a result of that purchase (column change). Round the first column down to integers.

Console

Code editor

Result

TableConsole