Advertisement
Guest User

1

a guest
Feb 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 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.  
  8. String text = reader.readLine();
  9. String num = reader.readLine();
  10. int numInt = Integer.parseInt(num);
  11.  
  12. while (numInt > 0) {
  13. System.out.println(text);
  14. numInt--;
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement