Program for Celsius To Fahrenheit conversion | CPP program to convert Celsius scale to Fahrenheit scale ; function to convert Celsius scale to Fahrenheit scale ; driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; float Cel_To_Fah ( float n ) { return ( ( n * 9.0 / 5.0 ) + 32.0 ) ; } int main ( ) { float n = 20.0 ; cout << Cel_To_Fah ( n ) ; return 0 ; }