Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
i need a program to find 5 4 3 2 1 0 -1 -2 -3 -4 -5

Respuesta aceptada

ES
ES el 12 de Jul. de 2017
Editada: ES el 12 de Jul. de 2017
a = [5:-1:-5];
disp(a);

Más respuestas (1)

sasi rekha
sasi rekha el 31 de Mayo de 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