---
title: 0415 AIOT 作業
tags: AIOT
---
> [repl.it/](https://repl.it/languages)
### 郭尚蓁
#### 第一題
:::info
用 input 方式幫我詢問身高和體重
範例 :
> print("你的身高是"+height+"公分,你的體重是"+weight+"公斤")
:::
#### 第二題
:::success
請幫我把三位同學的總成績跟平均算出來 ? ( A同學85分,B同學92分,C同學79分 )
範例 :
> 總分為 : xxx 分
> 平均為 : xxx 分
:::
#### 第三題
:::warning
幫我寫一個程式來判斷成績是否及格
如果大於 60 分則顯示及格
範例 :
> 請輸入成績 : 50
> 請輸入成績 : 80
及格
:::
#### 第四題
:::danger
請設計讓使用者輸入一個數字,並顯示出該數字乘上 1 ~ 9 的乘法表。
:::
####
```python=
while True:
height = int(input("請輸入身高"))
if height == ‘no’:
break
weight = int(input("請輸入體重"))
BMI = weight/((height/100)**2)
if BMI < 18.5:
print("過輕")
elif 18.5 <= BMI <23:
print("正常")
else:
print("過重")
```
### 盧欣
```python
height=int(input('身高:'))
weight=int(input('體重:'))
print("你的身高是"str(height)+"公分,你的體重是"+str(weight)+"公斤")
```
```python
a=85
b=92
c=79
total=a+b+c
print("a同學"+str(a)+"分,b同學"+str(b)+"分"+"c同學"+str(c)+"分"+"共"+str(total)+"分")
```
```python
score=int(input("成績:"))
if score >= 60:
print("及格")
else:
print("不及格")
```
```python
sum=0
for i in range(1,102,2):
sum+=i
print(sum)
```
```python
s = int(input())
for i in range(1,10):
print(s*i)
```
```python
n = int(input("請輸入數字一到九"))
if 0<n<10:
for i in range (1,10):
print("{}*{}={}".format(n,i,n*i))
else:
print("wrong")
```
### 德宏
```python=
height = input("Enter Height:")
weight = input("Input weight:")
print("我的身高是 "+height + "公分,體重是"+weight+"公斤")
```
```python=
score1 = int(input("A's score:"))
score2 = int(input("B's score:"))
score3 = int(input("C's score:"))
total = score1 + score2 + score3
print("Total score:" ,total)
avg = total/3
print("Average:",avg)
```
```python=
currentScore = float(input("Your score:"))
if(currentScore>=60):
print("Pass")
else:
print('Fail')
```
```python=
num = int(input())
for i in range(1,10):
print(num*i, end=" ")
```
```python=
num = int(input())
if num <= 0 or num > 9:
print("wrong")
else:
for i in range(1,10):
msg = "{} x {} = {}".format(num,i,num*i)
print(msg)
```