当前位置:网站首页>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)
边栏推荐
- Flutter Widget : Flow
- Prompt unread messages and quantity before opening chat group
- Bert running error: attributeerror: module'tensorflow contrib. tpu' has no attribute 'InputPipelineConfig'
- Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!
- Adult adult adult
- node的ORM使用-Sequelize
- Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.
- 网上炒股开户安不安全?谁给回答一下
- Dix règles de travail
- Introduction to concurrent programming (II)
猜你喜欢

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

云计算未来 — 云原生
![Sword finger offer03 Repeated numbers in the array [simple]](/img/cf/c1ad2f2a45560b674b5b8c11fed244.png)
Sword finger offer03 Repeated numbers in the array [simple]
![Sword finger offer04 Search in two-dimensional array [medium]](/img/c4/002c951f8d914aaea4f4133685ebd1.png)
Sword finger offer04 Search in two-dimensional array [medium]

Shutter widget: centerslice attribute

Sword finger offer10- I. Fibonacci sequence

Fluent: Engine Architecture

Sword finger offer07 Rebuild binary tree

2021 autumn Information Security Experiment 1 (password and hiding technology)

最新版抽奖盲盒运营版
随机推荐
实现验证码验证
Pytext training times error: typeerror:__ init__ () got an unexpected keyword argument 'serialized_ options'
雲計算未來 — 雲原生
Lambda expression
Flinksql can directly create tables and read MySQL or Kafka data on the client side, but how can it automatically flow and calculate?
2020-10_ Development experience set
257. All paths of binary tree
Pki/ca and digital certificate
Introduction to concurrent programming (II)
elastic_ L02_ install
Apache Mina Development Manual
01_ Using the concurrent tool class library, is thread safety safe
111. Minimum depth of binary tree
temp
New features of ES6
Approve iPad, which wants to use your icloud account
十条职场规则
ImportError: No module named examples. tutorials. mnist
2.6 preliminary cognition of synergetic couroutines
How to deploy web pages to Alibaba cloud