当前位置:网站首页>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 : KeyedSubtree
- Eureka self protection
- 102. Sequence traversal of binary tree
- 雲計算未來 — 雲原生
- GCN thinking - word2vec directly calculates text classification
- Sword finger offer09 Implementing queues with two stacks
- 2.9 overview of databinding knowledge points
- [ManageEngine] the role of IP address scanning
- 2.7 overview of livedata knowledge points
猜你喜欢

Summary of development issues

What is more elegant for flutter to log out and confirm again?

Implement verification code verification

Sword finger offer09 Implementing queues with two stacks

剑指Offer03. 数组中重复的数字【简单】

Prompt unread messages and quantity before opening chat group

Swagger

雲計算未來 — 雲原生

Shutter: overview of shutter architecture (excerpt)

剑指Offer05. 替换空格
随机推荐
Computer version wechat applet full screen display method, mobile phone horizontal screen method.
232. Implement queue with stack
Bert running error: attributeerror: module'tensorflow contrib. tpu' has no attribute 'InputPipelineConfig'
Fluent: Engine Architecture
Lambda expression
雲計算未來 — 雲原生
云计算未来 — 云原生
239. Sliding window maximum
Introduction to concurrent programming (I)
阿里 & 蚂蚁自研 IDE
repo Manifest Format
GCN thinking - word2vec directly calculates text classification
Applet wxss introduction
OpenStack节点地址改变
Apache Mina Development Manual
Togaf certification self-study classic v2.0
剑指Offer10- I. 斐波那契数列
TOGAF认证自学宝典V2.0
Introduction to concurrent programming (II)
initial、inherit、unset、revert和all的区别