Back to tasks
Rectangle
BeginnerPython for kids 路 Lesson 18: Module 1 summary: First steps
Problem Statement
Two lines hold a rectangle's sides. Print its area, and on the second line its perimeter.
Input Format
Two whole numbers a and b (0..1000), each on its own line.
Output Format
Exactly the text from the example.
Examples
Example 1
Input
8 5
Output
40 26