androw47501 androw47501 28-11-2022 Mathematics contestada Write a function swapvectorends() that swaps the first and last elements of its vector parameter. Ex: sortvector = {10, 20, 30, 40} becomes {40, 20, 30, 10}.