how can I make a table for this loop

clc, clear
integer = 1;
for x = 1:20
integer = integer*x
end

Réponses (1)

Andrei Bobrov
Andrei Bobrov le 12 Oct 2017
Modifié(e) : Andrei Bobrov le 12 Oct 2017
cumprod(1:20)

Cette question est clôturée.

Tags

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by