Temperature Converter

Temperature Converter

#include <iostream>
using namespace std;

int main () {
cout<<"HAMMAD AHMAD | BSCE-F17-012| THE UNIVERSITY OF LAHORE, ISLAMABAD CAMPUS\n";
cout<<"Centigrate to Fahrenheit Converter\n";
float centigrate,fahrenheit;
cout<<"Please enter the temperature in Centigrate:\n";
cin>>centigrate;
cout<<"The temperature in Fahrenhite ====> ";
fahrenheit= (centigrate*9.0)/5.0+32;
cout<<fahrenheit<<"K";
return 10;
}

Post a Comment

0 Comments