📌  相关文章
📜  3.5.8:矩形,第 3 部分 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:56.993000             🧑  作者: Mango

代码示例2
length = int(input("What is the length?: "))
width = int(input("What is the width?: "))

area = length*width
perimeter = 2*(length+width)

print (("Area: ") + str(area))
print (("Perimeter: ") + str(perimeter))