Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class _10_Modify_A_Bit {
  3.     public static void main(String[] args) {
  4.  
  5.         Scanner scanner = new Scanner(System.in);
  6.         String firstname = scanner.nextLine();
  7.         String lastname = scanner.nextLine();
  8.         int age = Integer.parseInt(scanner.nextLine());
  9.         String town = scanner.nextLine();
  10.  
  11.         System.out.printf("You are %s %s, a %d-years old person from %s.",
  12.                 firstname, lastname, age, town);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement