C++ Program to convert celcius to farenheit

Introduction

C++ Program to convert celcius to farenheit. I have used Dev-C++ IDE for debugging purpose. But you can use any C programming language compiler as per your compiler availability.

#include<iostream>
using namespace std;

int main()
{
     float celsius, fahrenheit;
    
     cout << "Enter Temperature in Celsius : ";
     cin >> celsius;
    
     fahrenheit = (1.8 * celsius) + 32; // Formula to caltulate Celsius to Fahrenheit
     cout << "Temperature in Fahrenheit : " << fahrenheit;
    
     return 0;
}

Result

C++ Program to convert celcius to farenheit
C++ Program to convert celcius to farenheit

Leave a Comment

x