Computer Science, asked by raqshandatanveer, 2 days ago

What is a compound statement? Give an example. *

Answers

Answered by aayushiahirwal
1

Compound statements contain (groups of) other statements; they affect or control the execution of those other statements in some way. In general, compound statements span multiple lines, although in simple incarnations a whole compound statement may be contained in one line.

For example, “It is snowing, and I wish that I were out of doors, but I made the mistake of signing up for this course,” is a compound statement.

.

.

.

.

.

.

hope it will be helpful

Mark me as a brainliest

Answered by shrishti222
1

Answer:

A combination of two or more simple statements is a compound statement.

eg- “It is snowing, and I wish that I were out of doors, but I made the mistake of signing up for this course,” is a compound statement.

Similar questions