← Problem book: C
Lesson 1 of 96 · 10 XP
Perimeter and area
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
You are given the sides of a rectangle a and b — integers on one line, separated by a space.
Print its perimeter, and on the next line — its area.
Example
Input:
3 4
Output:
14
12
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.