c++ program to convert celsius to fahrenheit

#include <iostream>

using namespace std;

int main() {
    // Declare variables to store temperature in Celsius and Fahrenheit
    float celsius, fahrenheit;

    // Prompt the user to enter temperature in Celsius
    cout << "Enter temperature in Celsius: ";

    // Read temperature in Celsius from the user
    cin >> celsius;

    // Convert Celsius to Fahrenheit using the formula: F = (C * 9/5) + 32
    fahrenheit = (celsius * 9.0/5.0) + 32;

    // Display the result
    cout << "Temperature in Fahrenheit: " << fahrenheit << endl;

    return 0;
}