Back to tasks
The cash machine
BeginnerPython for kids 路 Lesson 28: Checking the data - before we calculate
Problem Statement
Read how much money is in the account, then the amount to withdraw. If the withdrawal is bigger than the money in the account, print BRAK SRODKOW (not enough money). Otherwise print how much will be left.
Input Format
Two whole numbers: the balance (0..1000) and the withdrawal (1..1000), each on its own line.
Output Format
A number or BRAK SRODKOW.
Examples
Example 1
Input
50 30
Output
20
Example 2
Input
50 80
Output
BRAK SRODKOW