Advertisement
Guest User

1

a guest
Feb 27th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import java.io.*;
  2.  
  3. public class Main {
  4. public static void main(String[] args) throws Exception {
  5. //напишите тут ваш код
  6. BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
  7. String name = reader.readLine();
  8. String y1 = reader.readLine();
  9. String m1 = reader.readLine();
  10. String d1 = reader.readLine();
  11.  
  12. int y = Integer.parseInt(d1);
  13. int m = Integer.parseInt(m1);
  14. int d = Integer.parseInt(y1);
  15.  
  16. System.out.println();
  17. System.out.println("Меня зовут " + name + ".");
  18. System.out.println("Я родился " + y + "." + m + "." + d);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement