当前位置:网站首页>Enter the length of three sides of the triangle through the user, and calculate the area of the triangle, where the length is a real number
Enter the length of three sides of the triangle through the user, and calculate the area of the triangle, where the length is a real number
2022-07-03 12:38:00 【iWillook】
#
# main.py
# Some Python Program
#
# Created by Mewlan Musajan on 4/29/21.
#
g = int(input('UZUNLUQ 1: '))
b = int(input('UZUNLUQ 2: '))
a = int(input('UZUNLUQ 3: '))
def isLengthValid():
global g
global b
global a
while g+b<a or g+a<b or b+a<g:
print('TEREP UZUNLUQLIRI ÜCHBULUNG HASIL QILAMMIDI, QAYTA KIRGÜZÜNG')
g = int(input('UZUNLUQ 1: '))
b = int(input('UZUNLUQ 2: '))
a = int(input('UZUNLUQ 3: '))
isLengthValid()
v = (g + b + a) / 2
m = (v*(v-g)*(v-b)*(v-a)) ** 0.5
print('ÜCHBULUNGNING YÜZI %0.5f' %m)
边栏推荐
- lambda与匿名内部类的区别
- JVM memory model
- [combinatorics] permutation and combination (example of permutation and combination)
- Jsup crawls Baidu Encyclopedia
- 剑指Offer03. 数组中重复的数字【简单】
- Pki/ca and digital certificate
- Bert running error: attributeerror: module'tensorflow contrib. tpu' has no attribute 'InputPipelineConfig'
- Use bloc to build a page instance of shutter
- Swift return type is a function of function
- Apache Mina开发手册
猜你喜欢

The future of cloud computing cloud native

使用BLoC 构建 Flutter的页面实例

公纵号发送提示信息(用户微服务--消息微服务)

Itext7 uses iexternalsignature container for signature and signature verification
![[download attached] password acquisition tool lazagne installation and use](/img/21/eccf87ad9946d4177b600d96e17322.png)
[download attached] password acquisition tool lazagne installation and use

记录自己vulnhub闯关记录

Cloud Computing future - native Cloud

Display time with message interval of more than 1 minute in wechat applet discussion area

The latest version of blind box mall thinkphp+uniapp

Fluent: Engine Architecture
随机推荐
init. RC service failed to start
Everything comes to him who waits
在网上炒股开户可以吗?资金安全吗?
elastic_ L02_ install
Recovery of website address and method of Amazon account login two-step verification failure caused by mobile phone number becoming empty
Record your vulnhub breakthrough record
云计算未来 — 云原生
temp
With pictures and texts, summarize the basic review of C language in detail, so that all kinds of knowledge points are clear at a glance?
Introduction to concurrent programming (II)
JVM内存模型
OpenStack节点地址改变
Apache Mina Development Manual
20. Valid brackets
十条职场规则
雲計算未來 — 雲原生
2.8 overview of ViewModel knowledge
Adult adult adult
adb push apk
elastic_ L04_ introduction. md