Baljeet
Member
- Jan 31, 2011
- 76
- 0
Hey All! Heres a tutorial on how to make a simple console application that converts Celsius to Fahrenheit. I'm using Code::Blocks.
-----------------------------------------------------------------------------------------------------------------
So this is what it should look like at the start.
Now we add the input for Celsius and the conversion factor.
Now we add the conversion factor from celsius to fahrenheit.
Now we just output this on the screen.
Hope this helped!!!!!!
All Credits goes to one who really made this...
-----------------------------------------------------------------------------------------------------------------
So this is what it should look like at the start.
Code:
#include <iostream>
#include <cstdlib>
#include <cstdio>
int main(){
using namespace std;
system("PAUSE");
return0;
}
Code:
#include <iostream>
#include <cstdlib>
#include <cstdio>
int main(){
using namespace std;
int celsius;
cout << "Enter Temperature In Celsius: ";
cin >> celsius;
int conversion;
conversion = 212 - 32;
system("PAUSE");
return0;
}
Code:
#include <iostream>
#include <cstdlib>
#include <cstdio>
int main(){
using namspace std;
int celsius;
cout << "Enter Temperature In Celsius: ";
cin >> celsius;
int conversion;
conversion = 212 - 32;
int fahrenheit;
fahrenheit = conversion * celsius/100 + 32;
system("PAUSE");
return0;
}
Code:
#include <iostream>
#include <cstdlib>
#include <cstdio>
int main(){
using namespace std;
int celsius;
cout << "Enter Temperature In Celsius: ";
cin >> celsius;
int conversion;
conversion = 212 - 32;
int fahrenheit;
fahrenheit = conversion * celsius/100 + 32;
cout << "The Temperature In Fahrenheit Is: ";
cout << fahrenheit << endl;
system("PAUSE");
return0;
}
All Credits goes to one who really made this...