Computer Applications

Radhika is writing a program in Java to print her name 10 times. Suggest her the appropriate condition for the same.

Java Iterative Stmts

38 Likes

Answer

Radhika can print her name using a for loop in Java like this:

for (int i = 1; i <= 10; i++) {
    System.out.println("Radhika");
}

Answered By

22 Likes


Related Questions