View Code of Problem 114

import java.util.Scanner;
public class Main{
    public static void main(String args []){
        int i;
        Scanner in = new Scanner(System.in);
        String y = in.nextLine();
        char[] x = y.toCharArray();
        for (i = x.length-1 ;i>=0 ;i--){
            System.out.print(x[i]);
        }
          
    }
}

Double click to view unformatted code.


Back to problem 114