Azzera filtri
Azzera filtri

How can I use "OR" in this situation? I want it to show if x==2 or d~=0

1 visualizzazione (ultimi 30 giorni)
if x==2
disp('Given value is a prime!')
elseif d~=0
disp('Given value is a prime!')
end

Risposta accettata

jean claude
jean claude il 5 Ott 2017
Modificato: jean claude il 5 Ott 2017
if x==2 || d~=0
disp('Given value is a prime!')
end

Più risposte (0)

Categorie

Scopri di più su Discrete Math in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by