answersLogoWhite

0

If you want the next letter after a given letter, add one. For the previous letter, subtract one. Depending on the programming language, some additional details may be required - such as converting from text to number before adding, and converting back after adding. You'll also have to decide what to do when you get past the last letter - past the "Z" when going up, or past the "A" when going down.

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin

Add your answer:

Earn +20 pts
Q: Program to find next and previous alphabet of input alphabet?
Write your answer...
Submit
Still have questions?
magnify glass
imp