Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)

Risposta accettata

Walter Roberson
Walter Roberson il 10 Apr 2018
Modificato: Walter Roberson il 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.

Più risposte (0)

Categorie

Scopri di più su Scope Variables and Generate Names in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by