How to make and run a program that converts Fahrenheit to Celcius to Kelvin and vice versa in dev c++?
Ummm, dev c++ is just an IDE...
do u know what is the equation for it
int main() { float celsius; float fahrenheit; cout << "Enter Celsius temperature: "; cin >> celsius; fahrenheit = (5/9) * (celsius + 32); cout << "Fahrenheit = " << fahrenheit << endl; return 0; }
#include<stdio.h> #include<iostream> using namespace std; int main() { flaot celcius; float farenheit; float kelvin; cout<<"Enter farenheit"<<endl; cin>>farenheit; celcius=(farenheit-32)*(5/9); cout<<"Farenheit to celcius value is :"<<celcius<<endl; kelvin=(celcius+273); cout<<"Celcius to kelvin is :"<<kelvin<<endl; system("PAUSE"); return 0; }
I remember that I made that with javascript. Wana see it?
Join our real-time social learning platform and learn together with your friends!