From db6e7fcee30a9ae3731fa1cf9be4b204865ee433 Mon Sep 17 00:00:00 2001 From: NatanshSep2 <76418368+NatanshSep2@users.noreply.github.com> Date: Mon, 4 Oct 2021 10:20:05 +0530 Subject: [PATCH] Without break there is no use of switch case --- switch_case | 3 +++ 1 file changed, 3 insertions(+) diff --git a/switch_case b/switch_case index 2f09487..b26754f 100644 --- a/switch_case +++ b/switch_case @@ -6,8 +6,11 @@ int main() switch (x) { case 1: printf("Choice is 1\n"); + break; case 2: printf("Choice is 2\n"); + break; case 3: printf("Choice is 3\n"); + break; default: printf("Choice other than 1, 2 and 3\n"); } return 0;