Simple example for multiple case in switch in c

c program to print season name based on month number

Program:-



Click here to Download source code

Output:-

***Menu***
1 Jan
2 Feb
3 mar
4 april
5 may
6 June
7 July
8 August
9 september
10 october
11 November
12 December
Enter  month number
4
Summer season


***Menu***
1 Jan
2 Feb
3 mar
4 april
5 may
6 June
7 July
8 August
9 september
10 october
11 November
12 December
Enter  month number
14
Invalid month number

One Comment

Add your comments here

Back to Top