public static void main(String[] args) throws InterruptedException {
for (int i = 1; i <= 100; i++) {
System.out.print(i + "%");
Thread.sleep(200);
System.out.print("r");
}
}

public static void main(String[] args) throws InterruptedException {
for (int i = 1; i <= 100; i++) {
System.out.print(i + "%");
Thread.sleep(200);
System.out.print("r");
}
}