Temperature Converter - Xiao-XC/C-Practice-Projects GitHub Wiki

Temperature-Converter

Type: Bro Code course project Date: Sept 2026 Concepts: char input, scanf("%c", ...), if / else if / else

What it does

Presents a menu to convert temperature between Celsius and Fahrenheit, with error handling for invalid menu selections.

What I learned

The structure is like the Weight-Converter-Program but uses a char for the menu choice. Comparisons like choice == 'C' are case-sensitive, so lowercase input fell into the invalid branch. I fixed that later with toupper() in the Quiz-Game.

Source

[View the code on GitHub](https://github.com/Xiao-XC/C-Practice-Projects/tree/main/Temperature-Converter)

Back to Home