Filter löschen
Filter löschen

how to Write a program that prints out the numbers 5 through -5 in decreasing order.

3 Ansichten (letzte 30 Tage)
i need a program to find 5 4 3 2 1 0 -1 -2 -3 -4 -5

Akzeptierte Antwort

ES
ES am 12 Jul. 2017
Bearbeitet: ES am 12 Jul. 2017
a = [5:-1:-5];
disp(a);

Weitere Antworten (1)

sasi rekha
sasi rekha am 31 Mai 2021
I want a program to print 1+3+5+7 and compute it's sum

Community Treasure Hunt

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

Start Hunting!

Translated by