convert Celsius to Fahrenheit
#include <iostream>
using namespace std;
int main() {
// Declare variables for Celsius and Fahrenheit
double celsius, fahrenheit;
// Prompt user for input
cout << "Enter temperature in Celsius: ";
// Read input from user
cin >> celsius;
// Convert Celsius to Fahrenheit using the formula: F = (C * 9/5) + 32
fahrenheit = (celsius * 9.0 / 5.0) + 32.0;
// Display the result
cout << "Temperature in Fahrenheit: " << fahrenheit << endl;
return 0;
}