-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
- 先印出 -- Hello 你好!
- 印出小於 n 的所有奇數 printOdd(n)
- 寫一個函數判斷 n 是否為質數 isPrime(n)
- 印出所有小於 n 的質數總和 sumPrime(n)
- 寫一個函數做向量相加 vectorAdd(a,b)
- 寫一個函數做矩陣相加 matrixAdd(a,b)
- 寫一個函數做矩陣相乘 matrixMul(a,b)
- 請寫一個函數 daysInYear(n) 傳回西元 n 年應該有幾天
- 例如 daysInYear(1991) => 365
- daysInYear(2004) => 366
- daysInYear(1900) => 365
- daysInYear(2000) => 366 # 對 400 取餘數為 0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels