Back to tasks
The area of a rectangle
BeginnerPython for kids 路 Lesson 28: Checking the data - before we calculate
Problem Statement
Read the side lengths of a rectangle a and b. If any side isn't positive, print BLAD. Otherwise print the area of the rectangle.
Input Format
Two whole numbers a and b (-100..100), each on its own line.
Output Format
A number or BLAD.
Examples
Example 1
Input
3 4
Output
12
Example 2
Input
3 0
Output
BLAD