Back to tasks
A percentage
BeginnerPython for kids 路 Lesson 28: Checking the data - before we calculate
Problem Statement
Read two numbers: a part and the whole. If the whole is 0, print BLAD. Otherwise print what percentage of the whole the part is (part * 100 // whole).
Input Format
Two whole numbers: the part and the whole (0..1000), each on its own line.
Output Format
A number or BLAD.
Examples
Example 1
Input
15 60
Output
25
Example 2
Input
5 0
Output
BLAD