[Failed] "The program should display the string N times."
package com.codegym.task.task04.task0432;
/*
You can't have too much of a good thing
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
int b = Integer.parseInt(reader.readLine());
int i = 0;
while (i != b) {
i++;
System.out.println(a);
}
}
}
package com.codegym.task.task04.task0432;
/*
You can't have too much of a good thing
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
int b = Integer.parseInt(reader.readLine());
int i = 0;
while (i != b) {
i++;
System.out.println(a);
}
}
}