-->
当前位置:首页 > 题库

PROGRAMMING:Design a class of crackangle

Luz5年前 (2021-05-10)题库439
Design a crictangle class, the requirements are as follows:
(1) The private member variables in this class store the length and width of the clectangle, and set their default value to 1
(2) Set its length and width through the member function, and ensure that the length and width are within the range of (0, 50).
(3) Find perimeter
###Input format:
Enter two floating-point numbers a and B with absolute values no more than 50 in one line.
###Output format:
Output the value of perimeter in one line.
###Input example:
Here is a set of inputs. For example:
```in
25 15
```
###Output example:
The corresponding output is given here. For example:
```out
eighty
```







answer:If there is no answer, please comment