Community Profile

photo

Lakshan Bandara


Last seen: quasi 3 anni fa Attivo dal 2019

Followers: 0   Following: 0

Statistiche

  • Thankful Level 2
  • Thankful Level 1

Visualizza badge

Feeds

Visto da

1

risposta

Domanda


'Store the first N (user enters N) Fibonacci numbers in a row vector.'I know how to get user entered number of fibbonachi numbers. But I don't know how to show them in a row vector.
clc; clear; close all; N=input('Enter the number = '); B(1)=0; B(2)=1; count=1; for i=3:N B(1,i)=B(i-2)+B(i-1); ...

oltre 4 anni fa | 1 risposta | 0

1

risposta