Computer Science, asked by expressionQueen2020, 10 months ago

1. Explain the following terms with suitable example

a) Compound statement

b) Break Statement​

Answers

Answered by gurleenrandhawa42
1

Answer:

A compound statement is any number and kind of statements grouped together within curly braces. You can use a compound statement anywhere a statement is required by Java syntax: for(int i = 0; i < 10; i++) { a[i]++; // Body of this loop is a compound statement.

break Statement

break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop. It can be used to terminate a case in the switch statement

Answered by Anonymous
5

Answer:

hey mate

Explanation:

check my last question and join me

Similar questions