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
State whether the following statement is True or False :
While writing programs, the statements should be indented properly for better readability.
State whether the following statement is True or False :
The number of iteration refers to the number of times the condition is met.
Naina has written a program in which she has entered one number. She wants to check whether the entered number is divisible by 2 or not. Suggest her the appropriate condition for the same.
The .......... is a logical situation where either of the two actions are to be performed depending on certain condition.