Azzera filtri
Azzera filtri

how can i write code on this?

3 visualizzazioni (ultimi 30 giorni)
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G il 16 Gen 2018
Risposto: Birdman il 16 Gen 2018
if true
f (a, b) = { 0, if a mod b = 0
{ b (a mod b), otherwise
end

Risposta accettata

Birdman
Birdman il 16 Gen 2018
a=input('Enter a\n');
b=input('Enter b\n');
if ~mod(a,b)
y=0
else
y=b-mod(a,b)
end

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB 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