Didart

Reversed Chars

May 12th, 2021
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class ReversedChars {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         char one = scanner.nextLine().charAt(0);
  8.         char two = scanner.nextLine().charAt(0);
  9.         char three = scanner.nextLine().charAt(0);
  10.  
  11.         System.out.printf("%c %c %c", three, two, one);
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment