View Code of Problem 52

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String string = scanner.nextLine();
		for(int i = string.length() - 1;i >= 0;i--) {
			System.out.print(string.charAt(i));
		}
	}
}

Double click to view unformatted code.


Back to problem 52