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

1 Ansicht (letzte 30 Tage)

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Apr. 2018
Bearbeitet: Walter Roberson am 10 Apr. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Scope Variables and Generate Names finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by