Display the season- Summer, Winter. Rain for given month of year [Jan,. Feb.Dec.]
This post content:-
Algorithm
Flowchart
C code
Output
Pdf notes
Algorithm:-
Step 1:- start.
Step 2:- declare variable month
Step 3:- input month.
Step 4:- using switch case.
Case: 12,1,2,3.
Print=> season is winter.
Case: 4,5,6,7.
Print=> season is summer.
Case: 8,9,10,11.
Print=> season is rainy.
Flowchart:-
C code:-
Output:-
Try it yourself:-
Comments
Post a Comment