###### tags: `Python 教學` # 2022/3/5 基礎 功課1 ## 描述:輸入5個數字,然後印出第3個 輸入: 1 2 3 4 5 輸出: 3 ```python= a =(intput()) b =(intput()) c =(intput()) d =(intput()) e =(intput()) print(c) ``` ## 迴圈應用 ``` 輸出一個高度為n的三角形 輸入1: 3 輸出1: * *** ***** 輸入2: 4 輸出2: * *** ***** ******* ``` ```python= ``` ## 描述:輸入N個數字,然後印出第M個,保證(N<=M) 輸入: 5 #n 3 #m 1 2 3 4 5 輸出: 3 ```python= ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up