Computer Applications
How many times the following body of loop will execute?
for(int a = 1; a <= 10; a++)
{
System.out.println(a);
}
- 0
- 9
- 10
Java Iterative Stmts
16 Likes
Answer
10
Answered By
1 Like
Related Questions
Name the expression that is used to initialize a loop variable.
The unusual execution of more than one case at a time is termed as
How many times the following message will be printed?
do { System.out.println("Hello"); } ch++; while(ch <= 1);
If none of the case matches, the compiler executes the statements written in the .......... case.