Computer Applications
How many times the following message will be printed?
do
{
System.out.println("Hello");
}
ch++;
while(ch <= 1);
- 1
- Error in Code
- 2
Related Questions
The unusual execution of more than one case at a time is termed as
How many times the following body of loop will execute?
for(int a = 1; a <= 10; a++) { System.out.println(a); }
If none of the case matches, the compiler executes the statements written in the .......... case.
Which control structure is used when there is a requirement to check multiple conditions in a program?