12. Nested if and switch

Aap kis language mein padhna chahoge?

Which language do you want to learn in?

Code aur technical words English mein hi rahenge. Aap baad mein bhi language badal sakte ho.

Lesson 12

Nested if and switch

Unlock this lesson

Create a free account, then buy the course to open every lesson.

What you will learn in this lesson

  • Put an if inside another if, for a decision in two stages.
  • Pick one of many exact values with switch.
  • Stop each case with break, and catch everything else with default.
  • See what happens when you forget break.
  • Use switch with characters, and join cases together.

50 minutes Lesson 12 of 37

Everything in C Programming: BCA, MCA, BTech & O Level

  • 37 step-by-step lessons
  • 10 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account