Advertisement
Spocoman

07. Reversed Chars

Oct 17th, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. class Main {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         char first = scanner.nextLine().charAt(0),
  7.             second = scanner.nextLine().charAt(0),
  8.             third = scanner.nextLine().charAt(0);
  9.        
  10.         System.out.println(third + " " + second + " " + first);
  11.         //System.out.printf("%c %c %c\n", third, second, first);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement