计算三角形周长面积_python3

计算三角形的周长和面积

http://www.nowcoder.com/questionTerminal/109a44d649a142d483314e8a57e2c710

import math
a, b, c = map(int, input().split())
p = a + b + c
print('circumference={:.2f} area={:.2f}'.format(p, math.sqrt(p/2*(p/2-a)*(p/2-b)*(p/2-c))))
全部评论

相关推荐

点赞 评论 收藏
分享
12-19 16:52
门头沟学院
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务