[求助]幾個作業!謝
費式數列 1 ( if n = 0 or 1)
F(n) = {
f(n-1) + f(n-2)
EX: 輸入n = 4
輸出: F(0) = 1
F(1) = 1
F(2) = 2
F(3) = 3
F(4) = 5
==============================================
找出比n小的所有與n互質的數
EX: 輸入10
輸出: 比10小且與n互質的數有:3.7.9
===============================================
矩陣運算
輸入兩個2x2矩陣A B,算出A+B和AxB
EX:矩陣A
A[0,0] = 1
A[0,1] = 2
A[1,0] = 3
A[1,1] = 4
矩陣B
B[0,0] = 5
B[0,1] = 6
B[1,0] = 7
B[1,1] = 8
輸出:
A + B =
6 8
10 12
A x B =
19 22
43 50
===========================================
請幫忙一下謝謝
用WINDOW forms來做的