- 8
- 0
- 约2.49千字
- 约 2页
- 2020-04-30 发布于安徽
- 举报
实验 3 选择结构程序设计(续)
【实验目的 】
1.掌握分支条件语句的使用。
2 .掌握分支嵌套语句的使用。
【实验内容 】
1. 通过 Input ()函数任意输入三条边长,经过简单的计算后,判断三条边长能否构成三角
形,并确定是类型的三角形,如(等边,等腰,一般三角形)。
a=input(Please input the length of a:)
b=input (Please input the length of b:)
c=input(Please input the length of c:)
if a+bc and a+cb and b+ca:
if a==b==c:
print This is an equilateral triangle.
if a==b or a==c or b==c:
print This is an isosceles triangle.
if a!=b!=c:
print This
您可能关注的文档
最近下载
- 《SHS01012-2004-常压立式圆筒形钢制焊接储罐维护检修规程》.pdf VIP
- 江苏省南京市玄武区中考一模物理试卷(含解析).docx VIP
- SMH-353535-100-XL 硬体操作说明书.pdf VIP
- T_GDNAS 081─2026(鼻窦负压置换技术规范).pdf
- 消毒供应中心停水的应急预案与流程.docx VIP
- Delta台达工业自动化交流伺服系统ASD-A2-0721-E br ASD-A2-1021-E br ASD-A2-1521-E br ASD-A2-0443-E br ASD-A2-0743-E.pdf
- 美剧剧本绝望主妇台词本中英文对照精排版第一季第一集.pdf VIP
- 金州湾临空经济区路网交通能力分析研究.pdf VIP
- 标准图集-2020浙GT48 螺锁式预应力混凝土方桩.pdf VIP
- 七年级英语下学期期中考试(广东专用).docx VIP
原创力文档

文档评论(0)