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

3 次查看(过去 30 天)
i need a program to find 5 4 3 2 1 0 -1 -2 -3 -4 -5

采纳的回答

ES
ES 2017-7-12
编辑:ES 2017-7-12
a = [5:-1:-5];
disp(a);

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by