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 Ahnkar Misra 821 02 Feb 2023 How to swap neighbor characters in string, e.g. string “DEMO” would be: EDOM
Following is the simple C# program to swap neighbor characters in a given string,