photo

Emmanuel


Last seen: 10 Monate vor Aktiv seit 2024

Followers: 0   Following: 0

Statistik

  • First Answer

Abzeichen anzeigen

Feeds

Anzeigen nach

Beantwortet
How can I solve this problem using for loop?
total = 0; x = [2,2,5,8]; n = length(x); for i =1:n-1 total = total + x(i)*x(i+1); end disp(total)

10 Monate vor | 0