Need help for a code

Below link is of a code I’ve submitted but couldn’t figure out whats wrong with it. Can anyone please help me with that?

So when you run the code, it send backs warning as the function is implicit and in your case it takes “abs” as an implicit function, but due to no function found as “abs” it return error.
In this case you can intialize the operation between variable seperately

You are declaring array x[n] before you take the value of n as input

1 Like