| ➥ | a = int(input("請輸入a邊長:")) |
| ➥ | b = int(input("請輸入b邊長:")) |
| ➥ | c = int(input("請輸入c邊長:")) |
| ➥ | if ((a+b>c) and (a+c>b) and (b+c>a)): |
| ➥ | print("可以構成三角形") |
| ➥ | else: |
| ➥ | print("不能構成三角形") |
| ➥ | a = int(input("請輸入a邊長:")) |
| ➥ | b = int(input("請輸入b邊長:")) |
| ➥ | c = int(input("請輸入c邊長:")) |
| ➥ | if ((a+b>c) and (a+c>b) and (b+c>a)): |
| ➥ | print("可以構成三角形") |
| ➥ | else: |
| ➥ | print("不能構成三角形") |