Borrar filtros
Borrar filtros

how can i write code on this?

3 visualizaciones (últimos 30 días)
PLACEIUS NISHIGA G
PLACEIUS NISHIGA G el 16 de En. de 2018
Respondida: Birdman el 16 de En. de 2018
if true
f (a, b) = { 0, if a mod b = 0
{ b (a mod b), otherwise
end

Respuesta aceptada

Birdman
Birdman el 16 de En. de 2018
a=input('Enter a\n');
b=input('Enter b\n');
if ~mod(a,b)
y=0
else
y=b-mod(a,b)
end

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by