English

Both conditional statement and iterative statement have a condition and a statement. How do they differ?

Advertisements

Question

Both conditional statements and iterative statements have a condition and a statement. How do they differ?

Distinguish Between
Advertisements

Solution

Conditional Statement:

  • Statements are executed only once when the condition is true.
  • If condition statement.

Iterative Statement:

  • An iterative statement repeatedly evaluates a condition and executes a statement until it becomes false.
  • While condition statement.
shaalaa.com
Composition
  Is there an error in this question or solution?
Chapter 7: Composition and Decomposition - Evaluation - Section - B [Page 100]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 7 Composition and Decomposition
Evaluation - Section - B | Q 3. | Page 100
Advertisements
Share
Notifications



      Forgot password?
Use app×