function fibonacci_sequence(num_terms)
    fib_sequence = [0, 1];
    
    for i = 3:num_terms
        fib_sequence(i) = fib_sequence(i-1) + fib_sequence(i-2);
    end
    
    fprintf('Fibonacci Sequence:\n');
    disp(fib_sequence);
end 