logo

Crowdly

[ Average expected time to solve this question: 7 min] a) Create a function th...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

[Average expected time to solve this question: 7 min]

a) Create a function that, given a string, returns the same string with first and last letter swapped.

Example "cats and dogs" ---»"sats and dogc"

b) Create a Sub to ask the user to enter a string and, using the previous function, shows in a message the string with first and last letter swapped.

More questions like this

Want instant access to all verified answers on moodle.lisboa.ucp.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!