Answer:
Scanner sc= new Scanner(System.in);
System.out.print("Input a String: ");
String str = sc.nextLine();
System.out.print("Input an integer: ");
int num = sc.nextInt();
for(int i=str.length()-1; i>=0; i--) {
for(int j=0; j<num; j++) {
System.out.print(str.charAt(i));
}
}
Step-by-step explanation:
That should work just let me know!