Here Are 5 Practice Program Questions Based On The Concepts You'Ve Covered (Variables, If-Else, Switch, and While Loop) in C Programming
Here Are 5 Practice Program Questions Based On The Concepts You'Ve Covered (Variables, If-Else, Switch, and While Loop) in C Programming
1. Temperature Conversion
Write a program to convert temperature from Celsius to Fahrenheit and vice versa. Use a
variable to store the temperature and an if-else statement to determine which conversion to
perform based on user input (1 for Celsius to Fahrenheit, 2 for Fahrenheit to Celsius).
Formula: