Exercise Solution from Past Procedural Programming Exam
This program analyzes monthly weather data (temperature, humidity, rainfall) and prints seasonal statistics.
It is intended for educational purposes and sharing with classmates for reference.
- Stores weather data for each month using a
struct. - Finds the month with maximum temperature, humidity, and rainfall.
- Prints data for a given season (Winter, Spring, Summer, Fall).
- Demonstrates the use of arrays, pointers, structs, and string comparisons in C.
- Copy the code from
weather.c. - Compile with GCC:
gcc weather.c -o weather
Run the program:
./weather