. Which of the following is a compound statement?
(a) p=Integer.parseInt(in.readLine());
(b) c=++a;
(c) if(a>b) a++; b--;
(d) a=4;
Answers
Answered by
16
Answer:
write answer is ( c) if (a>b) a++; b--;
Answered by
3
if(a>b) a++; b--; is a compound statement Option(c).
a statement is called a compound statement only if more than one command is written in a single line. This statement is executed when the conditions are satisfied.
Similar questions