Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = 1;
b = 2;
c = 3;
d = 4;
flag_correct = false;
assert(isequal(isTherePythagoreanTriple(a, b, c, d),flag_correct))
ans =
0
|
2 | Pass |
%%
a = 2;
b = 3;
c = 4;
d = 5;
flag_correct = true;
assert(isequal(isTherePythagoreanTriple(a, b, c, d),flag_correct))
ans =
1
|
3 | Pass |
%%
a = 3;
b = 4;
c = 5;
d = 6;
flag_correct = true;
assert(isequal(isTherePythagoreanTriple(a, b, c, d),flag_correct))
ans =
1
|
4 | Pass |
%%
a = 3;
b = 4;
c = 4.5;
d = 5;
flag_correct = true;
assert(isequal(isTherePythagoreanTriple(a, b, c, d),flag_correct))
ans =
1
|
5 | Pass |
%%
a = 3;
b = 3.5;
c = 4;
d = 5;
flag_correct = true;
assert(isequal(isTherePythagoreanTriple(a, b, c, d),flag_correct))
ans =
1
|
785 Solvers
495 Solvers
1425 Solvers
546 Solvers
Remove the two elements next to NaN value
411 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!