Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
my goal is to make the biggest common partition but says syntax error >>> if(y==0)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
a=int(input("1.tam sayi: "));
b=int(input("2.tam sayi: "));
fprintf(" \nEBOB(%d,%d)=%d\n" ,a,b,ebob(a,b);
function [S]=ebob(x,y)
if (y==0)
S=x;
else
S=ebob(y,mod(x,y));
end
end
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!