Advertisements
Advertisements
प्रश्न
Give an example of a compound statement.
थोडक्यात उत्तर
उत्तर
if (a > b)
{ sum = a + b;
pdt = a * b;
}
In the example above, the statements placed in curly brackets are carried out if the condition is true.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.08: Conditional Statements in Java - EXERCISES [पृष्ठ १००]