input a string and print it 10 times
Answers
Answered by
0
Answer:
java.util.Scanner;
class Print
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter a String");
String str=sc.nextLine();
for(int x=1;x<=10;x++)
{
System.out.println(str);
}
}
}
Similar questions