Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 11 / 7115%
Control Flow1/6

C++ If-Else / Switch

Make your programs decide. Master if-else and switch — the foundation of every algorithm.

switch (day)case 1:printf("Mon");case 2:printf("Tue");case 3:printf("Wed");default:printf("???");
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?