How to swap neighbor characters in string, e.g. string “DEMO” would be: EDOM
How to swap neighbor characters in string, e.g. string “DEMO” would be: EDOM
Student
Tamplet designer as a part-time and full-time football addict. Graduated from Aligarh Muslim University with having Bachelor of Science and currently working and playing in my life.
Following is the simple C# program to swap neighbor characters in a given string,