A command-line C program that accepts user input for temperature and categorizes it into weather conditions such as hot, cold, or normal using conditional statements.
- Takes temperature input from the user
- Classifies weather into categories
- Uses simple and clear conditional logic
- Beginner-friendly project
- C Programming Language
-
User enters a temperature value
-
The program checks the value using conditions
-
It displays whether the weather is:
- Hot
- Cold
- Normal
- Make sure you have a C compiler installed (e.g., GCC)
- Compile the program:
- Run the program:
- How to use conditional statements (if/else)
- How to take user input in C
- Basic program structure in C
Treasure Inioluwa Amao
Aspiring Software Engineer