desislava_topuzakova

Untitled

Sep 12th, 2021
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. package com.company;
  2. import java.util.Scanner;
  3. public class Main {
  4. public static void main(String[] args) {
  5. Scanner a = new Scanner(System.in);
  6. String First = a.nextLine();
  7. String Last = a.nextLine();
  8. int age = Integer.parseInt(a.nextLine());
  9. String town = a.nextLine();
  10. System.out.println("You are"+ " " + First +" "+ Last + ", a"+ " " + age + "-years old person from"+ " " +town+".");
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment