celsius to fahrenheit formula
#include <stdio.h>
int main() {
float celsius, fahrenheit;
// Step 1: Input temperature in Celsius
printf("Enter temperature in Celsius: ");
scanf("%f", &celsius);
// Step 2: Convert Celsius to Fahrenheit using the formula: Fahrenheit = (Celsius * 9/5) + 32
fahrenheit = (celsius * 9 / 5) + 32;
// Step 3: Display the result
printf("Temperature in Fahrenheit: %.2f\n", fahrenheit);
return 0;
}