tutor.org.in

Free preview · Reading · 1 h 30 min

Iterative constructs

Computer Applications — WBCHSE Class 12 · 1. Iterative constructs

In this lesson

  • for, while and do-while loops
  • Nested loops and patterns
  • break and continue

Explanation

  • for, while and do-while loops
  • Nested loops and patterns
  • break and continue

Worked example

Nested loops print a right triangle of stars.

Practice

Write programs for three number patterns.

Continue in the learning spaceEnrol to open every lesson, track your progress, hand in work for faculty review and ask your tutor.Enrol — ₹3,499 for 12 months