#include <stdio.h>
int main() {
float celsius, fahrenheit;
// Reading temperature in Celsius
printf(“Enter temperature in Celsius: “);
scanf(“%f”, &celsius);
// Converting Celsius to Fahrenheit
fahrenheit = (celsius * 9 / 5) + 32;
// Printing the temperature in Fahrenheit
printf(“Temperature in Fahrenheit: %.2f\n”, fahrenheit);
return 0;
}
These programs demonstrate basic operations like reading input, performing calculations, and printing results, which are fundamental in programming.