Create a function called own_abs, which is the absolute number entered as the input return value.
Hello, Krisztina Szilágyi.
To make a good Cody problem there should be several (four or more) test cases within the Test Suite.
See Problem 44631 and successors for some ideas. For this specific problem it may also be interesting to ban the use of MATLAB's built-in function, which is most conveniently done by using assessfunctionabsence (see https://au.mathworks.com/help/coursework/ug/assessfunctionabsence.html ) in the Test Suite. —DIV
Back to basics 13 - Input variables
203 Solvers
Return the first and last character of a string
1664 Solvers
243 Solvers
285 Solvers
178 Solvers