This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 3;
b= 4;
y_correct = 5;
assert(abs(hypotenuse(a,b)-y_correct)<0.0001)
ans =
5
|
2 | Pass |
a = 2;
b = pi * 2;
y_correct = sqrt(a^2+b^2)
assert(abs(hypotenuse(a,b)-y_correct)<0.0001)
y_correct =
6.5938
ans =
6.5938
|
3 | Pass |
user_solution = fileread('hypotenuse.m');
assert(isempty(strfind(user_solution,'sqrt')));
assert(isempty(strfind(user_solution,'^')));
|
MATCH THE STRINGS (2 CHAR) very easy
194 Solvers
Find out value of sine given by degree.
172 Solvers
197 Solvers
178 Solvers
Finding two missing number in 1 to n array
32 Solvers