Write a program in JAVA that will accept a word of even length and create a new word by interchanging two consecutive letters of the word.
Sample Input: PROGRAMS Sample Output: RPGOARSM
Aucun commentaire:
Enregistrer un commentaire