← Problem book: C
Lesson 87 of 96 · 10 XP
Function: area
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
Write a function area(w, h) that returns the area of a rectangle. Read the width and height of two rectangles (four numbers: w1 h1 w2 h2) and print their areas, separated by a space.
Example
Input:
2 3 4 5
Output:
6 20
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.