This program allows the user to convert temperatures between Celsius and Fahrenheit.
To use the program, the user is presented with a menu of options:
- Celsius to Fahrenheit
- Fahrenheit to Celsius
The user can select an option by entering the corresponding number and pressing Enter.
To exit the program, the user can enter 0
and press Enter.
If the user selects option 1 or 2, they will be prompted to enter a temperature in the appropriate scale. The program will then output the converted temperature.
Here is an example of a session using the program:
Celsius to Fahrenheit Fahrenheit to Celsius Enter your choice (1 or 2), or 0 to exit: 1 Enter temperature in Celsius: 25 25 degrees Celsius is equal to 77 degrees Fahrenheit. Celsius to Fahrenheit Fahrenheit to Celsius Enter your choice (1 or 2), or 0 to exit: 2 Enter temperature in Fahrenheit: 77 77 degrees Fahrenheit is equal to 25 degrees Celsius. Celsius to Fahrenheit Fahrenheit to Celsius Enter your choice (1 or 2), or 0 to exit: 0