How to remove the word 'Pythogorean results are' for the second line onwards?

1 visualización (últimos 30 días)

Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Abr. de 2018
Editada: Walter Roberson el 10 de Abr. de 2018
if c == 1
fprintf('Pythagorean results are\n');
end
if c <= 10
fprintf('a=....');
end
But probably you should just move printing of that one line to before the outer-most loop.

Más respuestas (0)

Categorías

Más información sobre Scope Variables and Generate Names en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by