Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

how can I make a table for this loop

1 view (last 30 days)
Jorge Tejada
Jorge Tejada on 12 Oct 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
clc, clear
integer = 1;
for x = 1:20
integer = integer*x
end

Answers (1)

Andrei Bobrov
Andrei Bobrov on 12 Oct 2017
Edited: Andrei Bobrov on 12 Oct 2017
cumprod(1:20)

This question is closed.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!