import java.util.Scanner;
public class WhileLoop {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int counter = 1;
while (counter <= n) {
System.out.println("I Love You " + counter);
counter++;
}
System.out.println(n + " times I love you print.");
}
}
No comments:
Post a Comment