Computer Science, asked by prithachatterjeecom, 9 months ago

input a string and print it 10 times​

Answers

Answered by itsshreyas
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
Math, 1 year ago