Kishore
Followers: 0 Following: 0
統計
All
Feeds
解決済み
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
10ヶ月 前
回答済み
I can't deal with this code.Please help me:)
clear all; close all; clc; n= input("Enter an number to calculate its fibonacci number: ") F = [1 1]; % Initially F has ...
I can't deal with this code.Please help me:)
clear all; close all; clc; n= input("Enter an number to calculate its fibonacci number: ") F = [1 1]; % Initially F has ...
1年以上 前 | 0
回答済み
Fibonacci and Golden Ratio
fib=[0 1]; i=3; while(i<=21) fib(i)=fib(i-1)+fib(i-2); gr=fib(i)/fib(i-1) i=i+1; end disp(fib)
Fibonacci and Golden Ratio
fib=[0 1]; i=3; while(i<=21) fib(i)=fib(i-1)+fib(i-2); gr=fib(i)/fib(i-1) i=i+1; end disp(fib)
1年以上 前 | 0
回答済み
For loop for fibonacci series
fib=[]; fib(1)=0; fib(2)=1; for i=3:10 fib(i)=fib(i-1)+fib(i-2); end disp(fib)
For loop for fibonacci series
fib=[]; fib(1)=0; fib(2)=1; for i=3:10 fib(i)=fib(i-1)+fib(i-2); end disp(fib)
1年以上 前 | 0