Back to tasks
Safe division
BeginnerPython for kids 路 Lesson 28: Checking the data - before we calculate
Problem Statement
Read two numbers a and b. If b is zero, print BLAD (error). Otherwise print the result of a // b.
Input Format
Two whole numbers a and b (-1000..1000), each on its own line.
Output Format
A number or BLAD.
Examples
Example 1
Input
17 5
Output
3
Example 2
Input
17 0
Output
BLAD