alpaca-13b· Stanford
Arena Human Preference 55K
Can you write a plsql function that takes a number parameter (which is actually a…
- User
Can you write a plsql function that takes a number parameter (which is actually a nonnegative integer) and returns the number with the original digits reversed in order (i.e. for the input of 123, the function should return 321)?
- Assistant
Yes, here is a PL/SQL function that takes a number parameter (which is actually a nonnegative integer) and returns the number with the original digits reversed in order (i.e. for the input of 123, the function should return 321): FUNCTION reversed_digits (n INTEGER) RETURN n * 100 + (n / 100); END reversed_digits;
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.