View Code of Problem 52

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

Double click to view unformatted code.


Back to problem 52