Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class _10_Modify_A_Bit {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String firstname = scanner.nextLine();
- String lastname = scanner.nextLine();
- int age = Integer.parseInt(scanner.nextLine());
- String town = scanner.nextLine();
- System.out.printf("You are %s %s, a %d-years old person from %s.",
- firstname, lastname, age, town);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement