求长方形的周长和面积
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
【问题描述】
从键盘读入 2 个整数,分别代表一个长方形的长和宽,请计算长方形的周长和面积。
【输入格式】
从键盘读入 2 个整数,用空格隔开。
【输出格式】
输出有 2 行,第 1 行代表周长,第 2 行代表面积。
【样例数据】
2 3
10
6
少科院七年级第1次课——整数运算
- Status
- Done
- Problem
- 10
- Open Since
- 2025-11-22 0:00
- Deadline
- 2025-12-6 23:59
- Extension
- 24 hour(s)